Thread: Question

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    Australia
    Posts
    24
    Rep Power
    0

    Question


    Sorry for the noobish question but my code is formatted like this
    Code:
    Form2.Show()
    Me.Close()
    Me.Dispose()
    the result of this is that Form2 opens but then both forms close
    Is there a way to only close the first form without touching the second form?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    14
    Rep Power
    0
    Have you by any chance got your project set to shutdown when your startup form closes (which is the default setting)?

    If that is the case you need to change the setting to "when last form closes"

    The setting is under Project Properties, the Application tab, look for 'Shutdown mode'
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Location
    Australia
    Posts
    24
    Rep Power
    0
    Thanks for the help

IMN logo majestic logo threadwatch logo seochat tools logo