Closing A Program on 2nd Form VB.NET

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

    Closing A Program on 2nd Form VB.NET

    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.
  • koi
    New Member
    • Feb 2008
    • 5

    #2
    Hai,

    Even i dont know the reason, but while opening the next form send the main form object as parameter and in formclosing or formclosed event of next form close the main form through the passed parameter
    application will close

    hope it helps..

    Comment

    Working...