[Tutorial]How to make login window[VB]

Posts 1–7 of 7 · Page 1 of 1
[Tutorial]How to make login window[VB]
There's my tutorial how to make login window. And i apologize, if topic alredy exists.

Step 1

Open Visual Basic, make new project. Then add 2 textboxes, one button and 2 labels to the form (you can rename it).



Step 2

Select textbox for password. In Properties window, find "Password char" and fill it with *.



Step 3

Double click to button1 (login button) and add this code:

Code:
If Me.TextBox1.Text = "" Or Me.TextBox2.Text = "" Then
            MsgBox("Empty textbox!")
        ElseIf Me.TextBox1.Text = "MPGH" And Me.TextBox2.Text = "test" Then
            MsgBox("Successful login!")
        Else
            MsgBox("Unsuccesful login!", MsgBoxStyle.Critical)
        End If


Step 4

Now try if program works fine ...





Quote Originally Posted by Flash View Post
There's my tutorial how to make login window. And i apologize, if topic alredy exists.

Step 1

Open Visual Basic, make new project. Then add 2 textboxes, one button and 2 labels to the form (you can rename it).



Step 2

Select textbox for password. In Properties window, find "Password char" and fill it with *.



Step 3

Double click to button1 (login button) and add this code:

Code:
If Me.TextBox1.Text = "" Or Me.TextBox2.Text = "" Then
            MsgBox("Empty textbox!")
        ElseIf Me.TextBox1.Text = "MPGH" And Me.TextBox2.Text = "test" Then
            MsgBox("Successful login!")
        Else
            MsgBox("Unsuccesful login!", MsgBoxStyle.Critical)
        End If


Step 4

Now try if program works fine ...





An okay TuT I guess, very basic though, no options for personal passwords/usernames etc. Also, according to the new rules this belongs in the Tutorials section; not the visual basic section.
Quote Originally Posted by Jason View Post


An okay TuT I guess, very basic though, no options for personal passwords/usernames etc. Also, according to the new rules this belongs in the Tutorials section; not the visual basic section.
Im sorry

Can moderator move this topic pls?
Goodjob like it
like it, my friend
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us