How does VB6 know where to start? [Solved]
I'm new to this forum and to VB6. Question: If you have a VB project with several code modules, several forms, some reports, etc., how do you tell VB6 where to start? In other words, if you want a certain form or certain bunch of code to display or execute first, how do you set up things in your project so that VB knows enough to do a certain something first? Are there naming conventions used?
Like I said, I'm new to VB6, although I've used MS Access and VBA.
I sure would appreciate anyone willing to help answer this. :confused:
Re: How does VB6 know where to start?
project -> project properties -> startup object
Re: How does VB6 know where to start?
Generally, the first form you put in your project is the one that will load first. To circumvent this, you can got to the properties page of your project, by right-clicking it in the project manager view, or, alternatively, you can add a "Sub Main()" statment to either a new module, or an existing module, and that will be the default loading procedure. If you need help with either, I would be glad to help.
Re: How does VB6 know where to start?
You can set the StartingObject in the ProjectProperties (click Menu Project, last item).
Re: How does VB6 know where to start?
Wow! That was fast! Thank you all so much..... I'll go and digest what you've all advised.
Thanks again - it's really appreciated. :thumb: :thumb:
Re: How does VB6 know where to start? [Solved]
Got it! Now I'm on my merry way, at least for a few hours, until my next plight. Thanks again to all who posted replies, and have a nice weekend.