PDA

Click to See Complete Forum and Search --> : Set a commandButton as the active object.


rancor
Jan 25th, 2000, 04:24 PM
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
rancor@sajberhem.nu
http://www.sajberhem.nu

Inhumanoid
Jan 25th, 2000, 05:06 PM
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

rancor
Jan 25th, 2000, 05:33 PM
=)

I feel like a jerk. aaarh..

Sometimes is the most simple sollusion the best..

TNX..

------------------
Best Regards rancor
rancor@sajberhem.nu
http://www.sajberhem.nu