all groups > dotnet windows forms > may 2007 >
You're in the

dotnet windows forms

group:

Will this do the global error handling?


Re: Will this do the global error handling? pvdg42
5/6/2007 8:26:11 PM
dotnet windows forms:
[quoted text, click to view]
In terms of preventing the default exception handler from terminating your
app, I guess you could say it would work. In terms of providing a context
sensitive response to a given exception and giving your application a chance
to recover and continue, it's not going to be useful.

Will this do the global error handling? John
5/6/2007 10:08:47 PM
Hi

My vb.net winform app has frmMyForm as the start-up form. I have enclosed
My.Forms.frmMyForm.Show() within try/catch. Will this do the trick of
handling all exceptions that have not been handled elsewhere?

Thanks

Regards


Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As
Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles
Me.Startup
Try
My.Forms.frmMyForm.Show()
Catch ex As Exception
' Exception handling here
End Try
End Sub

Re: Will this do the global error handling? John
5/7/2007 12:00:00 AM
What can I do to improve?

Thanks

Regards

[quoted text, click to view]

AddThis Social Bookmark Button