Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Form Index

Form Index

Scheduled Pinned Locked Moved Visual Basic
questiondatabaseadobehelptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Achithyn
    wrote on last edited by
    #1

    I am sorry to bother everyone again, though I had another quick question. What determines what form will show first within your project? Let us say we had three forms, what value, code or settings states that Form1 shows first? I want to add a form before my main form - such as a flash screen - or just another form for anything - though do not know how to make it and then have it load first rather than when it is called by form1. Any help would be greatly appreciated. Links, Articles, Books, anything would help. :) Thanks! ~Achithyn

    J D R 3 Replies Last reply
    0
    • A Achithyn

      I am sorry to bother everyone again, though I had another quick question. What determines what form will show first within your project? Let us say we had three forms, what value, code or settings states that Form1 shows first? I want to add a form before my main form - such as a flash screen - or just another form for anything - though do not know how to make it and then have it load first rather than when it is called by form1. Any help would be greatly appreciated. Links, Articles, Books, anything would help. :) Thanks! ~Achithyn

      J Offline
      J Offline
      Jim Matthews
      wrote on last edited by
      #2

      you set the statup object in the project properties. assuming you are using vs.net right click your project in the solution explorer and click properties. the properties dialog will come up and should default to the "Common Properties - General" page. In here you'll see a combobox titled "Startup Object" listing your options for the main form/object. when you expand this combobox you should basically have any forms you have created in your project, select whichever one you wish to be the main form. hope this helps.


      -jim

      1 Reply Last reply
      0
      • A Achithyn

        I am sorry to bother everyone again, though I had another quick question. What determines what form will show first within your project? Let us say we had three forms, what value, code or settings states that Form1 shows first? I want to add a form before my main form - such as a flash screen - or just another form for anything - though do not know how to make it and then have it load first rather than when it is called by form1. Any help would be greatly appreciated. Links, Articles, Books, anything would help. :) Thanks! ~Achithyn

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        In addition to what jmatthew said, splash screens should not be the Startup Form. The first form that is executed can not be unloaded unless you want your app to quit. The first, or main, form should be your startup form, then this form can load and show the splash form while the main form is doing it's initialization. When that's complete, the main form can hide and the dispose the splash form, then show itself. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        A 1 Reply Last reply
        0
        • D Dave Kreskowiak

          In addition to what jmatthew said, splash screens should not be the Startup Form. The first form that is executed can not be unloaded unless you want your app to quit. The first, or main, form should be your startup form, then this form can load and show the splash form while the main form is doing it's initialization. When that's complete, the main form can hide and the dispose the splash form, then show itself. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          A Offline
          A Offline
          Achithyn
          wrote on last edited by
          #4

          That is truly awesome. I found the properties section of everything else 'other' than the projects properties - now I have that as well. This opens up a lot more for me to explore and answers several questions that I would have eventually asked if I had not discovered this (learned of it from both of you). As for Hiding and Closing the main form - I understand now how that works and will work with it to make my program better. Thanks for the help both of you - it is mightily helpful. :) ~Achithyn

          1 Reply Last reply
          0
          • A Achithyn

            I am sorry to bother everyone again, though I had another quick question. What determines what form will show first within your project? Let us say we had three forms, what value, code or settings states that Form1 shows first? I want to add a form before my main form - such as a flash screen - or just another form for anything - though do not know how to make it and then have it load first rather than when it is called by form1. Any help would be greatly appreciated. Links, Articles, Books, anything would help. :) Thanks! ~Achithyn

            R Offline
            R Offline
            ramaseb
            wrote on last edited by
            #5

            Hi.. some more info. When you set in project properties the "start-up object”, setting so the first form as a start-up form, behind the scenes the Visual Studio adds a sub Main to your form. The sub Main is the entry point for your application. If you declare this sub Main in the startup form , you can put any code in this sub and control the start up behaviour of your application. Try to search the help for the sub main, and see what you can do there. Hope i helped you. Ramaseb.

            A 1 Reply Last reply
            0
            • R ramaseb

              Hi.. some more info. When you set in project properties the "start-up object”, setting so the first form as a start-up form, behind the scenes the Visual Studio adds a sub Main to your form. The sub Main is the entry point for your application. If you declare this sub Main in the startup form , you can put any code in this sub and control the start up behaviour of your application. Try to search the help for the sub main, and see what you can do there. Hope i helped you. Ramaseb.

              A Offline
              A Offline
              Achithyn
              wrote on last edited by
              #6

              Awesome, I will do just that. :) Thank you for letting me know about the sub Main - I will see how I can use it to help my applications. :) Thanks! ~Achithyn

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups