how to close the existing form when i am moveing to other form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seshu
    New Member
    • Nov 2006
    • 156

    how to close the existing form when i am moveing to other form

    i have form form1 with a button when i click on that it should open an other form form2 and close the form1
    for that the code i wrote is like this
    dim frm as new form2
    on button click
    frm.show()
    me.close

    on writing/running this code the whole application is getting closed
    what to do
  • bobneedshelp
    New Member
    • Feb 2007
    • 17

    #2
    The first form is the start up form of the application. Closing the startup form closes the application.

    Comment

    • alwayssmiling
      New Member
      • Oct 2006
      • 33

      #3
      hi,

      Try with MDIs where u can open multiple forms at a time........... ..

      Comment

      Working...