Opening And Closing Forms

unknownloser

Newcomer
Joined
Feb 17, 2005
Messages
7
Location
USA
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.
 
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
 
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?
 
Back
Top