How to Create a Simple Login Form in VB.NET using Visual Studio 2022 [with source code]
code: [inside the clicking event of login button]
Dim username As String = txtUser.Text
Dim password As String = txtPass.Text
If (username = "admin" And password = "admin") Then
MessageBox.Show("Login Success", "info", MessageBoxButtons.OK)
Else
MessageBox.Show("Login Error", "error", MessageBoxButtons.OK)
End If