Hi all,
I've a window form application with 3 forms. I want to catch the
security exception when users run this application from a network share,
thus I've made this code (I've notice that excpetion has been throw by
initializecomponent()):
Try
InitializeComponent()
Catch ex As Security.SecurityException
MessageBox.Show(....)
me.close()
End Try
I've made this in the main form, but all forms throw the exception
causing debugger window appear to users, thus, I've made the try-catch
block on all 2 other forms InitializeComponent.
The messagebox appears 3 times (one per form) but the application wan't
close: a debugger window appear...
How can I do to application close after a messagebox to inform users?
thanks in advance and sorry for my bad english