New Form Exits Program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gumdealer328
    New Member
    • Feb 2008
    • 9

    New Form Exits Program

    When I press the next button on my program it closes the 1st form and opens the 2nd form and so on. How come the other forms don't exit the application when you press the "X" in the upper right corner? Only the 1st form does. Thanks in advance.
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Originally posted by gumdealer328
    When I press the next button on my program it closes the 1st form and opens the 2nd form and so on. How come the other forms don't exit the application when you press the "X" in the upper right corner? Only the 1st form does. Thanks in advance.
    you have to use UNLOAD form1, UNLOAD form2, etc. unless you are using VB.NET which is a bit different.

    Comment

    • gumdealer328
      New Member
      • Feb 2008
      • 9

      #3
      yes i am using vb.net

      Comment

      • jacobevans
        New Member
        • Aug 2007
        • 26

        #4
        Then you should be in the .NET forum.

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by jacobevans
          Then you should be in the .NET forum.
          It's possible the .Net forum will be able to help. But the line is a bit blurred. After all, VB.Net is still VB. We handle all flavours of VB here.

          It wouldn't hurt to try the .Net forum, though.

          Comment

          • debasisdas
            Recognized Expert Expert
            • Dec 2006
            • 8119

            #6
            That depends on the code running in background.

            Comment

            • jamesd0142
              Contributor
              • Sep 2007
              • 471

              #7
              On the application options windows, the one thats opens up when you double click the:
              my project - in solution explorer.

              there is an option called shutdown mode mayb that will help you.

              James

              Comment

              Working...