Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Hi. I've been having some trouble working with my forms because I've been used to working with VB 5 and VB 6. I've been using the "showdialouge" command to open new forms, but I can't figure out how to close the previous form. If anyone can lend a hand, I'd really appreciate it.
Posted

Let me see if I got it...

 

You want to ShowDialog a form (lets say Form2) from a prevous form (lets say Form1) and then, within Form2 close Form1, correct?

 

If so, it has no logic... ShowDialog is intended to be, like the name says, a dialog, and then cannot do what you intend...

 

On other hand, if what you real need is to change the Frm that keeps you application "alive" then there's another way...

 

Alex :p

Software bugs are impossible to detect by anybody except the end user.
Posted

Opps

 

I should have been a little clearer. My application starts off in a module. I was previously having trouble getting my opening form to display after Sub Main ran. The form would flash on the screen and then disappear. I was told that using ShowDialouge would fix the problem. Is there something else I could be doing?

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...