Call a command button on another form
By: Gordon F. MacLeod Date: 01/11/1998

To call a command button on another form, use the Value property of the button. By setting this property to True, you virtually click the button. Use this code:

formname.buttonname.Value = True

formname is the name of the form, buttonname is the name of the command button to activate. For example, to click the button Command1 in the form Form1, use this code:

Form1.Command1.Value = True

Click Here!


Visual Basic Programming Zone is a website by Lorenzo Dalla Vecchia.
Webmaster's e-mail: webmaster@vbprogzone.cjb.net
Hosted by InWind: www.inwind.it