[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:

Step 4
Now try if program works fine ...



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 ...






like it, my friend