Guest herewegoagain Posted October 7, 2002 Posted October 7, 2002 Okay I have a form open on top of another form which is acting like a login form....... Login completes the sql code is good everything is great except that the login screen and the intro screen though I tell it to close they hang around in back of the new form!! Here is what I have tried......... Dim fmintro As New fmintro() Dim fmjjksupmerge As New fmjjksupmerge() Dim fmlogin As New fmlogin() fmlogin.Visible = False fmintro.Visible = False fmintro.Close fmlogin.Close fmjjksupmerge.Visible = True ANy suggestions???????? Quote
*Gurus* divil Posted October 7, 2002 *Gurus* Posted October 7, 2002 You're creating new instances of forms then hiding them before they're even shown. I can't guess from that code exactly what you're trying to accomplish. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest herewegoagain Posted October 7, 2002 Posted October 7, 2002 I have a form called fmintro. fmintro if they click on some items opens another form called fmlogin in fixed dialog mode. Upon completion of the log in both fmintro and fmlogin are to give way to the new form called fmjjksupmerge. What do I have to do to make the other 2 forms disappear? Quote
*Gurus* divil Posted October 8, 2002 *Gurus* Posted October 8, 2002 If you're showing fmLogin with its ShowDialog method, that means execution will return to fmIntro after it's closed, on the next line. At that point you could choose to close fmIntro with Me.Close() and open the new one. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
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.