Results 1 to 3 of 3

Thread: Set a commandButton as the active object.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100

    Post

    Hi.. Does anyone knows how I set a commandButton active?.. Like the state after I have pushed the button (but I don't want to push it).

    ps. I don't want the Command1_Click event. I just want to use the button as a refference so I know exactly where I am on the form so I can use:
    SendKeys
    and automatic fill in a form..

    ------------------
    Best Regards rancor
    [email protected]
    http://www.sajberhem.nu

  2. #2
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Humm, maybe I got you wrong, but don't you just mean you want to give it focus ?
    Then your in the situation you would be after you clicked it (without clicking it)..

    You do it like this:

    command1.setfocus

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100

    Post

    =)

    I feel like a jerk. aaarh..

    Sometimes is the most simple sollusion the best..

    TNX..

    ------------------
    Best Regards rancor
    [email protected]
    http://www.sajberhem.nu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width