Perhaps I should post the lines of code of the event handlier the 'Display
Result' button. Thanks again.
'*******************************
'Begin of code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim num1 As Double
Dim num2 As Double
num1 = TextBox1.Text
num2 = TextBox2.Text
If reverse.Checked = False Then
If s.Checked Then
MsgBox("The sum of the numbers " & num1 & " and " & num2 & "
is " & num1 + num2 & ".", MsgBoxStyle.Information)
End If
If d.Checked Then
MsgBox("The difference of the numbers " & num1 & " and " &
num2 & " is " & num1 - num2 & ".", MsgBoxStyle.Information)
End If
If m.Checked Then
MsgBox("The multiple of the numbers " & num1 & " and " &
num2 & " is " & num1 * num2 & ".", MsgBoxStyle.Information)
End If
If q.Checked Then
MsgBox("The quotient of the numbers " & num1 & " and " &
num2 & " is " & num1 / num2 & ".", MsgBoxStyle.Information)
End If
End If
If reverse.Checked = True Then
If s.Checked Then
MsgBox("The sum of the numbers " & num1 & " and " & num2 & "
is " & num2 + num1 & ".", MsgBoxStyle.Information)
End If
If d.Checked Then
MsgBox("The difference of the numbers " & num1 & " and " &
num2 & " is " & num2 - num1 & ".", MsgBoxStyle.Information)
End If
If m.Checked Then
MsgBox("The multiple of the numbers " & num1 & " and " &
num2 & " is " & num2 * num1 & ".", MsgBoxStyle.Information)
End If
If q.Checked Then
MsgBox("The quotient of the numbers " & num1 & " and " &
num2 & " is " & num2 / num1 & ".", MsgBoxStyle.Information)
End If
End If
If (s.Checked = False) And (d.Checked = False) And (m.Checked =
False) And (q.Checked = False) Then
MsgBox("No operation key has been selected. Please try again.",
MsgBoxStyle.Exclamation, "Calculator")
End If
End Sub
'End of code
'*******************************