I
Ivan Jericevich
In my code below at the line 'response' a blip sound is heard and the
program exits the sub -- No MsgBox is displayed. What am I doing wrong?
If nonNumberEntered = True Then
msg = "Enter numbers only"
style = MsgBoxStyle.OkOnly
title = "ERROR in cast"
MsgBox(msg, style, title)
response = MsgBox(msg, style, title)
If response = MsgBoxResult.Yes Then
Exit Sub
Else
End If
e.Handled = True
End If
program exits the sub -- No MsgBox is displayed. What am I doing wrong?
If nonNumberEntered = True Then
msg = "Enter numbers only"
style = MsgBoxStyle.OkOnly
title = "ERROR in cast"
MsgBox(msg, style, title)
response = MsgBox(msg, style, title)
If response = MsgBoxResult.Yes Then
Exit Sub
Else
End If
e.Handled = True
End If