Jump to content
Xtreme .Net Talk

me.close problem


Recommended Posts

Guest gjnave
Posted

Lately (it didn't seem to do this before), when i try to open a form from within a form and then close the original form, both forms close and the program shuts down.

 

Is this a glitch in .Net?

 

here's the code using two forms (startForm and goForm)

 

(StartForm)

 

dim gForm as new goForm

gForm.show

me.close

 

**

At which point both forms crash. Am I missing something stupid?

 

thanks

  • Leaders
Posted

My guess is that it's becuase startForm is your startup object and thus your application. It seems to make sense that if that were closed all other forms would also be closed.

 

On the other hand, if you did opened yet another form from goForm it should behave as you are expecting.

--tim

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...