Simple Login Form with timer and progressbar using VB.net


login,vb.net,program.username and password,using progressbar,timer programmer,login using timer ,login using progressbar

login,vb.net,program.username and password,using progressbar,timer programmer,login using timer ,login using progressbar

login,vb.net,program.username and password,using progressbar,timer programmer,login using timer ,login using progressbar
This is a simple login page.Create two form named form 1,form2 .Pplace two labels,two textbox ,1 timer and one progressbar . place the below code in the specified place and run your program .Give username as admin and password as password.
Steps


  1. Write the below code inside login button 


 Private Sub btnLogin_Click(sender As System.Object, e As System.EventArgs) Handles btnLogin.Click
        If txtusername.Text = "admin" And txtpassword.Text = "password" Then
            Timer1.Enabled = True
        Else
            MsgBox("please check username/password")
        End If
    End Sub

    2. Write the below code in the timer 

  Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
        progressbar1.value += 10
        If ProgressBar1.Value >= ProgressBar1.Maximum Then
            Timer1.Enabled = False
            ' form2.showdialog()
        End If
    End Sub



After write the above codes run the program well.

Share on Google Plus

About Jasna Ali

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment