Hello
In my code I am trying to come up with the following messages using a try/catch
Unhandled exception has occurred in your application. If you click continue, the application will ignore this error adn attemp to continue. If you click Quit, the application will close immediately.
conversion from string """" to type 'integer' is not valid
Warning Icon
followed by 3 buttons one that saids the DETAILS, another for CONTINUE, and one for QUIT.
Here is part of my code. I did use Try/catch correctly, but it doesnt say the message the way i described it above ..
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim rtype As String
Dim run As fencerun
rtype = TypeCode()
Try
If fencerun.IsRun(rtype, CInt(txtLength.Text)) Then
run = New fencerun(rtype, CInt(txtLength.Text))
fence.Add(run)
'MessageBox.Show(run.Type & run.Feet.ToString)
Call clearinput()
Else
MessageBox.Show("invalid input")
'Exit Sub
End If
Catch ex As Exception
MessageBox.Show(ex.ToString, "Invisible Fence", MessageBoxButtons.OK, MessageBoxIcon.Stop)
End Try
End Sub
I appreciate any help..thank you