[Help] The damn form won't HIDE!
Okay I'm using this for my login screen to bring it up if the user presses "Log Out" (Linklabel2)
[php]
Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs ) Handles LinkLabel2.LinkClicked
LoginScreen.Show()
Me.Hide()
End Sub
[/php]
Now, usually this works no problem. But for some fucked up reason, me (aka Form1) refuses to hide. It goes away for like 0.5 seconds then pops straight back up.
As I'm not sure what's causing this, I'm not sure what code/etc you guys need, so just request whatever you need.
EDIT: Fixed it myself. No longer using the "hide" function.
Thanks.
J-Deezy.
Hmm...weird, it should work.
First, check if there is a close event for Form1 (aka Me). If so, check its code.
Now invert these statements:
LoginScreen.Show()
Me.Hide()
So it becomes;
Me.Hide()
LoginScreen.Show()
If all these fail, try to set:
Me.Visible = False
Me.Hide()