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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub Main vs Click events

Status
Not open for further replies.

ngmac

Programmer
Dec 4, 2002
3
US
I wish to start my program without a click event, but can't seem to be able to set it up correctly. I have somehow caused a file to not work, that previously had run OK when set to be the Startup Object. I had fiddled around by typing in a different name, but then I changed everything back to its previous state and now it won't run by itself. It will run from a Select Case file, but not independently as a Startup Object as it did before I started fooling around with it. How have I corrupted it? I have tried to set it up as a Sub Main but can't get that to work either!
 
I'm not quite sure what you are asking, but I'll take a stab at it. It seems that you want a form-level procedure to run as soon as you start your program. If that is indeed the case, just make the form the startup object via Project | Properties and put your procedure in the form's load event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top