Link to home
Start Free TrialLog in
Avatar of mikejh6
mikejh6

asked on

command

i have a command box but i do not know how to set the command to do an action when u click it.
How do u?
Avatar of mcix
mcix

If you double click the command button, it will open the Form Code Module and place you within the click event.  

You could write some code to bring up a Message Box, like this
Sub Command1_Click()

   MsgBox "Hello World!",VbInformation,"The world's oldest and most over-used demo"

End Sub



please...
is mcix comment is exactly what you want?

man, I dont' want to rude, but it is impossible to answer a question like this. You have to let us know a little bit more...
Imposible.. for me sorry....!
VB is an events driven lan. You would put your code in the event you want to fire up. Mcix shows you a prefect example for responding to the click event. You could put code in the mouseover event if you want something to happen when the user moves his/her mouse over the control.
ASKER CERTIFIED SOLUTION
Avatar of GETTYD
GETTYD

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial