Form1: Calculator Code
Form1: Calculator Code
Form1: Calculator Code
TextBox1.Text = "6"
End If
End Sub
End If
End Sub
End If
Secondnum = TextBox1.Text
If Operations = 1 Then
TextBox1.Text = firstnum + Secondnum
ElseIf Operations = 2 Then
TextBox1.Text = firstnum - Secondnum
ElseIf Operations = 3 Then
TextBox1.Text = firstnum * Secondnum
Else
If Secondnum = 0 Then
TextBox1.Text = "error"
Else
TextBox1.Text = firstnum / Secondnum
End If
operator_selector = False
End If
End Sub
End Class