CALCULATORVBNET
CALCULATORVBNET
CALCULATORVBNET
' 1 textbox
TextBox1.Text += "1"
Else
TextBox1.Text = "1"
End If
End Sub
TextBox1.Text += "2"
Else
TextBox1.Text = "2"
End If
End Sub
TextBox1.Text += "3"
Else
TextBox1.Text = "3"
End If
End Sub
TextBox1.Text += "4"
Else
TextBox1.Text = "4"
End If
End Sub
TextBox1.Text += "5"
Else
TextBox1.Text = "5"
End If
End Sub
TextBox1.Text += "6"
Else
TextBox1.Text = "6"
End If
End Sub
Else
TextBox1.Text = "7"
End If
End Sub
TextBox1.Text += "8"
Else
TextBox1.Text = "8"
End If
End Sub
TextBox1.Text += "9"
Else
TextBox1.Text = "9"
End If
End Sub
TextBox1.Text += "0"
Else
TextBox1.Text = "0"
End If
End Sub
TextBox1.Text += "."
Else
TextBox1.Text = "."
End If
End Sub
FirstNum = TextBox1.Text
TextBox1.Text = "0"
o_s = True
operations = 1 ' +
End Sub
FirstNum = TextBox1.Text
TextBox1.Text = "0"
o_s = True
operations = 2 ' -
End Sub
FirstNum = TextBox1.Text
TextBox1.Text = "0"
o_s = True
operations = 3 ' *
End Sub
TextBox1.Text = "0"
o_s = True
operations = 4 ' /
End Sub
SecondNum = TextBox1.Text
If operations = 1 Then
messbox = Str(TextBox1.Text)
MessageBox.Show(messbox)
messbox = Str(TextBox1.Text)
MessageBox.Show(messbox)
messbox = Str(TextBox1.Text)
MessageBox.Show(messbox)
messbox = Str(TextBox1.Text)
MessageBox.Show(messbox)
Else
End If
End If
End If
End Sub
TextBox1.Text = "0"
End Sub
Else
End If
End Sub
End Class