unknownloser Posted February 19, 2005 Posted February 19, 2005 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. Quote
AlexCode Posted February 19, 2005 Posted February 19, 2005 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 Quote Software bugs are impossible to detect by anybody except the end user.
unknownloser Posted February 20, 2005 Author Posted February 20, 2005 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? Quote
Administrators PlausiblyDamp Posted February 20, 2005 Administrators Posted February 20, 2005 http://www.xtremedotnettalk.com/showthread.php?t=91261 Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
unknownloser Posted February 25, 2005 Author Posted February 25, 2005 I talked with a few people I know, and I got basically the same response. Thanks for your help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.