-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.vb
52 lines (41 loc) · 1.46 KB
/
Form1.vb
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Public Class Form1
'ADDITION_button
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim sum As Integer
sum = Val(TextBox1.Text) + Val(TextBox2.Text)
TextBox3.Text = sum
End Sub
'End_button
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
End
End Sub
'Clear_button
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox1.Clear()
End Sub
'sub button
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
Dim sum As Integer
sum = Val(TextBox1.Text) - Val(TextBox2.Text)
TextBox3.Text = sum
End Sub
'multiplaction_button
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Dim sum As Integer
sum = Val(TextBox1.Text) * Val(TextBox2.Text)
TextBox3.Text = sum
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Dim sum As Integer
sum = Val(TextBox1.Text) / Val(TextBox2.Text)
TextBox3.Text = sum
End Sub
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
Dim sum As Integer
sum = Val(TextBox1.Text) Mod Val(TextBox2.Text)
TextBox3.Text = sum
End Sub
End Class