Results 1 to 6 of 6

Thread: How does VB6 know where to start? [Solved]

  1. #1

    Thread Starter
    Hyperactive Member greaseman's Avatar
    Join Date
    Jul 2005
    Location
    Somewhere, out there...
    Posts
    295

    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.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: How does VB6 know where to start?

    project -> project properties -> startup object

  3. #3
    Junior Member
    Join Date
    Jul 2005
    Posts
    26

    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.

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863

    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!

  5. #5

    Thread Starter
    Hyperactive Member greaseman's Avatar
    Join Date
    Jul 2005
    Location
    Somewhere, out there...
    Posts
    295

    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.

  6. #6

    Thread Starter
    Hyperactive Member greaseman's Avatar
    Join Date
    Jul 2005
    Location
    Somewhere, out there...
    Posts
    295

    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
  •  



Click Here to Expand Forum to Full Width