Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling cmdButton_Click Sub from code 1

Status
Not open for further replies.

IjumpOverU

Technical User
Jul 31, 2003
43
US
Is there any way to call a standard button click sub from within code. Each time I try to call this it says it expects and "=". Basically I the code I have in the button click sub I would like to use on UserControl_Initialize also and don't feel the need to copy and paste if I can call the button_click sub.

Thanks!
 
Form1.cmdButton_Click

The cmdButton_Click sub needs to be public.

Or

Form1.cmdButton.Value = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top