VB.Net - Login And Register Form Design


How To Design a Login And Register Form In VB.Net

How To Design a Login And Register Form In VB.Net



in this visual basic .net form design tutorial we will see how to design a login and register form in one  windowForm using vb.net programming language .

tools:
- visual basic .net programming language.
- microsoft visual studio express 2013.
- iconsdb.com ( to get the close icon).
- canva.com ( to create the app logo ).
- flatuicolorpicker.com ( for color ideas ).

Watch The Full Tutorial



- The Project Source Code

we will add two buttons and two panels to the form, inside the panels we will add the textboxes and buttons to login and register, and the two buttons will help us to go between the two panels.


Login Form Design


Register Form Design


Public Class Login_Register_Form

    ' display the login panel
    Private Sub ButtonGoToLogin_Click(sender As Object, e As EventArgs) Handles ButtonGoToLogin.Click

        Panel_Login.BringToFront()

        ButtonGoToLogin.BackColor = Color.FromArgb(34, 167, 240)
        ButtonGoToLogin.Font = New Font("Microsoft Sans Serif", 28)
        ButtonGoToLogin.ForeColor = Color.White
        Panel_LoginBar.BackColor = Color.Yellow

        ButtonGoToRegister.BackColor = Color.White
        ButtonGoToRegister.ForeColor = Color.Black
        ButtonGoToRegister.Font = New Font("Microsoft Sans Serif", 20)
        Panel_RegisterBar.BackColor = Color.FromArgb(34, 167, 240)

    End Sub

    ' display the register panel
    Private Sub ButtonGoToRegister_Click(sender As Object, e As EventArgs) Handles ButtonGoToRegister.Click

        Panel_Register.BringToFront()

        ButtonGoToRegister.BackColor = Color.FromArgb(34, 167, 240)
        ButtonGoToRegister.Font = New Font("Microsoft Sans Serif", 28)
        ButtonGoToRegister.ForeColor = Color.White
        Panel_RegisterBar.BackColor = Color.Yellow

        ButtonGoToLogin.BackColor = Color.White
        ButtonGoToLogin.ForeColor = Color.Black
        ButtonGoToLogin.Font = New Font("Microsoft Sans Serif", 20)
        Panel_LoginBar.BackColor = Color.FromArgb(34, 167, 240)

    End Sub

    ' close the form
    Private Sub PictureBox_Close_Click(sender As Object, e As EventArgs) Handles PictureBox_Close.Click

        Me.Close()

    End Sub

    Private Sub Login_Register_Form_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        ButtonGoToLogin.PerformClick()

    End Sub
End Class







Share this

Related Posts

Previous
Next Post »