I have a basic math calculator program. This application was designed to perform basic math calculations: +, -, *, /. The program was provided for us and we have to fix the errors in it. I have to keep the varaibles declared as short.

1. Test all operators with the values 8 and 2 to make sure it works as expected.
2. Test the program with 99999 + 99999. This should raise a 'System.OverflowException’ exception.
3. Modify the code to catch and handle the exception so that the user can continue. KEEP the declarations of FirstNum and SecondNum as short.
When I do 3 I am still getting the error code. I am placing a breakpoint at the highlighted area. The breakpoint says " this code has called into another function. When that function is finished this is the next statement that will be executed" It is placing this next to the Firstnum = Textbox.text HEre is the code:

'Declare FirstNum and SecondNum variables as global
Dim FirstNum, SecondNum As Short

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Assign text box values to variables
FirstNum = TextBox1.Text
SecondNum = TextBox2.Text
Try
If RadioButton1.Checked = True Then
TextBox3.Text = FirstNum + SecondNum
End If
Catch Exc As System.OverflowException
MessageBox.Show("Please choose smaller number")
End Try
'Determine checked button and calculate

If RadioButton2.Checked = True Then
TextBox3.Text = FirstNum - SecondNum
End If
If RadioButton3.Checked = True Then
TextBox3.Text = FirstNum * SecondNum
End If
If RadioButton4.Checked = True Then
TextBox3.Text = FirstNum / SecondNum
End If


End Sub

End Class

Any assistance would be greatly appreciated