none
VB.NET Exception handling in class library project RRS feed

  • Question

  • I am doing class library project with vb.net to work with AutoCAD.

    The problem is, Message box isn't working inside catch block but works fine anywhere in code. I tried the following lines and I got message box in try and default dialog box in catch. 

    Try
     Windows.Forms.MessageBox.Show("Testing Started")
     Dim x, y, z As Integer
     x = y / z
    Catch ex As Exception
     Windows.Forms.MessageBox.Show(ex.Message)
    End Try


    Thursday, May 29, 2014 7:12 AM

Answers