|
-
Jul 8th, 2005, 09:45 AM
#1
Thread Starter
Hyperactive Member
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.
Last edited by greaseman; Jul 8th, 2005 at 10:39 AM.
-
Jul 8th, 2005, 09:48 AM
#2
Re: How does VB6 know where to start?
project -> project properties -> startup object
-
Jul 8th, 2005, 09:49 AM
#3
Junior Member
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.
-
Jul 8th, 2005, 09:50 AM
#4
Re: How does VB6 know where to start?
You can set the StartingObject in the ProjectProperties (click Menu Project, last item).
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jul 8th, 2005, 10:06 AM
#5
Thread Starter
Hyperactive Member
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.
-
Jul 8th, 2005, 10:41 AM
#6
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|