login screen acting as a spash screen

I am having some issues with my login form. Its acting like a spash screen where it stays on only for a few seconds until my program loads and then closes. I have made sure that I created the login form with the template and checked my code, but it shouldnt be that difficult! Help!



Answer this question

login screen acting as a spash screen

  • Luis Alonso Ramos

    What's inside the login screen code Do you call Close anywhere in it, or set DialogResult property

  • Dan Scott

    Are you sure the screen isn't still there but being hidden by another screen Any screen you set to visible will automatically come to the forefront regardless of which screens are active...

  • Gabor Ratky

    Yup. I tried getting rid of the me.hide and that screen still just shows up for a minute and then disappears like a splash screen...ARGH!!! Its making me so angry!!
  • Rahul Singla

    Try getting rid of Me.Hide

  • MeanMisterE

    nope. But what I ended up doing was just scrapping the whole thing and sort of starting from scratch! I couldnt figure out where the problem was, even when commenting out everything, the problem still occured. so I partially started over and now everything is working...strange.

    Anyway, Thanks to everyone for taking the time to help me out. Appreciate it!


  • DiamonDogX

    This is where providing a code snippet would be priceless. Otherwise all you are saying is "I wrote my code correctly but it doesn't work"

  • CFIG

    Understandable, but I have tried it so many ways that I am not even sure which one to choose. I guess i am just wondering if anyone has encountered this problem before-that the login screen is basically acting as the splash screen.

    Here is just one that i have tried:

    Private Sub ButtonLoginOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonLoginOK.Click

    Dim quickwiremainform As New Form

    If TextBoxUserID.Text = "default" And _

    TextBoxLoginPassword.Text = "password" Then

    Me.Hide()

    quickwiremainform.ShowDialog()

    End If


  • JNils

    nope..its definately gone! I thought about that too but I closed out all the other windows and its not there. i am just so confused as to why its taking on all the characteristics of a splash screen. I had created a splash screen as the login screen, but realized there was a template for the login screen so I made sure to delete the splash screen and create a completely new login screen. But its like the new login template was never even used...(but i've made sure by deleting and creating a new one...twice!)
  • login screen acting as a spash screen