I feel really Stupid.......

  • Thread starter Thread starter herewegoagain
  • Start date Start date
H

herewegoagain

Guest
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????????
 
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.
 
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?
 
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.
 
Back
Top