Early & Adopter fill you in on "Application Level Events"
The 3 Leaf guys, (well probably just one of them... but who knows which one), talk about "Application Level Events" in Whidbey
Here's a code snippet to illustrate what they are talking about... something that I like to think of as "Global.asa" (I haven't done a lot of web work since ASP) for Windows applications...
Namespace My
Partial Friend Class MyApplication
Private Sub MyApplication_Shutdown(ByVal Sender As Object, _
ByVal e As System.Windows.Forms.ShutdownEventArgs) _
Handles Me.Shutdown
End Sub
Private Sub MyApplication_StartUp(ByVal sender As Object, _
ByVal e As System.Windows.Forms.StartupEventArgs) _
Handles Me.Startup
End Sub
Private Sub MyApplication_StartupNextInstance(ByVal Sender As Object, _
ByVal e As System.Windows.Forms.StartupNextInstanceEventArgs) _
Handles Me.StartupNextInstance
End Sub
Private Sub MyApplication_UnhandledException(ByVal sender As Object, _
ByVal e As System.Threading.ThreadExceptionEventArgs) _
Handles Me.UnhandledException
End Sub
End Class
End Namespace
Make sure you check out the whole post for a pretty screenshot :)
Comments
- Anonymous
June 04, 2004
Is it only for Whidbey? - Anonymous
June 04, 2004
In this style... yes, although you can handle these general events in other places in your code in 1.1 - Anonymous
June 04, 2004
In this style... yes, although you can handle these general events in other places in your code in 1.1