Results 1 to 3 of 3

Thread: Startup Object

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    67

    Startup Object

    Hello Everybody,



    Why is that some of my form will be included in the startup object, pls help


    thank you

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Startup Object

    What?

    Use more words to explain your problem.

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: Startup Object

    Quote Originally Posted by aming
    Hello Everybody,



    Why is that some of my form will be included in the startup object, pls help


    thank you
    After looking into my Crystal ball

    When you are designing your project you can choose how it will start.

    If you select a form as the startup object, then that form will run in accordance with your code.

    If you select Sub Main as the startup object, you will have to write a Sub main procedure, normally in a Module. In that case you have to create the instance of the form you want to run first. Assuming you designed your first form as fclsMain.vb then you use

    Public frmmain As New fclsmain

    Public Sub Main()
    Application.Run(frmMain)
    End Sub


    Hope that's what you wanted.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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