Try-Catch+(VB)

Dim num1 As New Integer Dim num2 As New Integer
 * Private Sub cmdDivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDivide.Click**

num1 = txtNum1.Text num2 = txtNum2.Text
 * Try**

lblAnswer.Text = num1 / num2

MsgBox(ex.Message)
 * Catch ex As Exception**
 * End Try**
 * End Sub**