When I run the following code when the form (FNonModal) has been disposed
of, the exception never gets caught by the program.
It remains unhandled and I'm being returned to the IDE. When I select
continue, AutoCAD catches the unhandled exception and displays an error
message (saying FNonModal has been disposed of)
Try
Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(FNonModal)
Catch ex As Exception
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error)
End Try
Thanks in advance.
Guido Rooms