VB.NET Exception handling in class library project RRS feed

  • Question

  • I am doing class library project with 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. 

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

    Thursday, May 29, 2014 7:12 AM