Re: Button Mouse Click Event
Correct me if i'm wrong, but do you want like on start-up to have the two forms visible, and then fire one of the buttons event? If so, this code should do the trick.
'place this code wherever you want it to happen that the two form get visible
' I placed it in the form load of the 1st form
'this is form 1
private sub form_load()
form2.load
' this loads the form
' note: this will trigger the form_load event of the 2nd form
form2.visible = true
' shows the form
' to click a button
' if the button is on the form itself, then you can omit the refference to the form
form1.command1_click
form1.command2_click
form2.command1_click
form2.command2_click
' this will act like a user pressed the 4 butons on the two forms
end sub
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.