Simple Calculator3
Simple Calculator3
Simple Calculator3
End Sub
End Class
ACTIVITY #2
ACTIVITY #3
FORM 1 LOGIN FORM
Form2.Show()
Me.Hide()
Else
MsgBox("Error!")
TextBox1.Text = " "
TextBox2.Text = " "
End If
End Sub
FORM 2 - MENU
End Sub
End Sub
FORM 3 - VOTE
End Sub
End Class
FORM 4 - GRADE
End Sub
End Sub
End Sub
End
End Sub
End Class
End Sub
End Class
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
TextBox1.Text = " "
TextBox2.Text = " "
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Form1.Show()
Me.Hide()
End Sub
End Class
ACTIVITY #5
FORM 1 USER PIN
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
End
End Sub
End Class
Form3.Show()
Me.Hide()
End Sub
End Class
FORM 3 MENU
End Sub
End Sub
End Sub
End Sub
End Class
End Sub
End Sub
End Class
FORM 5 DEPOSIT
End Sub
End Sub
End Class
FORM 6 WITHDRAWAL
End Sub
End Sub
End Class
ACTIVITY #6
FORM 1 LOGIN
End Sub
End Class
FORM 2 CALCULATOR
Dim op As Char
Dim memoryvalue As Integer
'1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "1"
Else
TextBox1.Text = TextBox1.Text + "1"
End If
End Sub
'2
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "2"
Else
TextBox1.Text = TextBox1.Text + "2"
End If
End Sub
'3
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "3"
Else
TextBox1.Text = TextBox1.Text + "3"
End If
End Sub
'4
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "4"
Else
TextBox1.Text = TextBox1.Text + "4"
End If
End Sub
'5
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "5"
Else
TextBox1.Text = TextBox1.Text + "5"
End If
End Sub
'6
Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "6"
Else
TextBox1.Text = TextBox1.Text + "6"
End If
End Sub
'7
Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "7"
Else
TextBox1.Text = TextBox1.Text + "7"
End If
End Sub
'8
Private Sub Button10_Click(sender As Object, e As EventArgs) Handles Button10.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "8"
Else
TextBox1.Text = TextBox1.Text + "8"
End If
End Sub
'9
Private Sub Button11_Click(sender As Object, e As EventArgs) Handles Button11.Click
If TextBox1.Text = "0" Then
TextBox1.Text = "9"
Else
TextBox1.Text = TextBox1.Text + "9"
End If
End Sub
'0
'+
Private Sub Button16_Click(sender As Object, e As EventArgs) Handles Button16.Click
fnum = TextBox1.Text
op = sender.text
TextBox1.Text = " "
End Sub
'=
Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
snum = TextBox1.Text
If op = "+" Then
TextBox1.Text = fnum + snum
ElseIf op = "*" Then
TextBox1.Text = fnum * snum
ElseIf op = "-" Then
TextBox1.Text = fnum - snum
ElseIf op = "/" Then
TextBox1.Text = fnum / snum
End If
End Sub
'C
Private Sub Button15_Click(sender As Object, e As EventArgs) Handles Button15.Click
fnum = 0
snum = 0
TextBox1.Text = "0"
End Sub
End Sub
End Class
ACTIVITY #7
End If
End Sub
End If
End Sub
End Class
ACTIVITY #8
End Sub
COKE = 15 * Val(TextBox2.Text)
sum += COKE
TextBox13.Text = sum.ToString
End If
End Sub
End Sub
CheckBox3.Checked = False
CheckBox4.Checked = False
CheckBox5.Checked = False
CheckBox6.Checked = False
CheckBox7.Checked = False
CheckBox8.Checked = False
CheckBox9.Checked = False
CheckBox10.Checked = False
CheckBox11.Checked = False
CheckBox12.Checked = False
TextBox1.Text = " "
TextBox2.Text = " "
TextBox3.Text = " "
TextBox4.Text = " "
TextBox5.Text = " "
TextBox6.Text = " "
TextBox7.Text = " "
TextBox8.Text = " "
TextBox9.Text = " "
TextBox10.Text = " "
TextBox11.Text = " "
TextBox12.Text = " "
TextBox13.Text = " "
TextBox14.Text = " "
TextBox15.Text = " "
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
End
End Sub
End Class