-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.vb
More file actions
28 lines (25 loc) · 1.03 KB
/
Form1.vb
File metadata and controls
28 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If String.IsNullOrEmpty(TextBox1.Text.Trim) Then
ErrorProvider1.SetError(TextBox1, "This is a required field")
Else
If String.IsNullOrEmpty(TextBox2.Text.Trim) Then
ErrorProvider1.SetError(TextBox2, "This is a required field")
Else
dashboard.Show()
End If
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Application.Exit()
End Sub
Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged
If (CheckBox1.Checked) Then
TextBox2.UseSystemPasswordChar = False
Else
TextBox2.UseSystemPasswordChar = True
End If
End Sub
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
End Sub
End Class