Visual basic: Tutorial 5 - Simple login program

Опубликовано: 02 Июль 2026
на канале: Peter Richardson
1,207
3

Visual basic 2008 express edition

On this tutorial i will show how to make a simple login form!
Good luck

the code:


Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Username.Text = "Irule" And Password.Text = "Herule" Then
MsgBox("Login correct", MsgBoxStyle.MsgBoxRight, "Correct")
Form2.Show()
Else
MsgBox("Login Incorrect", MsgBoxStyle.Critical, "Incorrect")



End If
End Sub
End Class