Results 1 to 3 of 3
  1. #1
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted

    [Help]problem with code[/solved]

    ok well i made a login for my mini tool thing where u got to login to use it . an then it opens form1 if info is right but it closes everything after it logins in y?
    Code:
     Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
            If OK.Enabled = True Then Timer1.Enabled = True
            If Login(UsernameTextBox.Text, PasswordTextBox.Text) Then
                MsgBox("Login Succesfull", MsgBoxStyle.OkOnly, "Logged in")
                Form1.Show()
                Me.Close()
            Else
                If MsgBox("Login failed, please register at Mpgh.net to use this program" & vbCrLf & "Want to try again?", MsgBoxStyle.RetryCancel, "Warning") = MsgBoxResult.Retry Then
                Else
                End If
            End If
        End Sub
    Last edited by pushdis15; 04-08-2011 at 06:29 AM.
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Project properties > Application > Shutdown modus(or whatever it is called) > When last form closes.



  3. The Following User Says Thank You to Blubb1337 For This Useful Post:

    ♪~ ᕕ(ᐛ)ᕗ (04-08-2011)

  4. #3
    pushdis15's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    spokane washington
    Posts
    923
    Reputation
    20
    Thanks
    170
    My Mood
    Twisted
    appreciate /close
    PlayStation ID:
    Boxing509

    Quote Originally Posted by pushdis15
    Women now have choices. They can be married, not married, have a job, not have a job, be married with children, unmarried with children. Men have the same choice we've always had: work, or prison.