Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
2,258 additions
and
2,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
public | ||
public | ||
public/index.html | ||
public/404.html | ||
public/index.xml | ||
public/sitemap.xml | ||
public/tags/index.html | ||
public/tags/index.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 23 additions & 12 deletions
35
content/Blog/early-adopter-fill-you-in-on-application-level-events.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
--- | ||
date: 2004-06-05T10:47:00+00:00 | ||
title: Early & Adopter fill you in on "Application Level Events" | ||
title: Early & Adopter fill you in on "Application Level Events" | ||
type: posts | ||
--- | ||
The [3 Leaf](http://www.3leaf.com/) guys, (well probably just one of them... but who knows which one), talk about ["Application Level Events" in Whidbey](http://ea.3leaf.com/2004/06/application_lev.html) | ||
|
||
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... | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">Namespace My Partial <font color="blue" family="Microsoft Sans Serif">Friend <font color="blue" family="Microsoft Sans Serif">Class MyApplication <font color="blue" family="Microsoft Sans Serif">Private <font color="blue" family="Microsoft Sans Serif">Sub MyApplication_Shutdown(<font color="blue" family="Microsoft Sans Serif">ByVal Sender <font color="blue" family="Microsoft Sans Serif">As <font color="blue" family="Microsoft Sans Serif">Object, _ <font color="blue" family="Microsoft Sans Serif">ByVal e <font color="blue" family="Microsoft Sans Serif">As System.Windows.Forms.ShutdownEventArgs) _ <font color="blue" family="Microsoft Sans Serif">Handles <font color="blue" family="Microsoft Sans Serif">Me.Shutdown <font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Sub</pre> | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">Private <font color="blue" family="Microsoft Sans Serif">Sub MyApplication_StartUp(<font color="blue" family="Microsoft Sans Serif">ByVal sender <font color="blue" family="Microsoft Sans Serif">As <font color="blue" family="Microsoft Sans Serif">Object, _ <font color="blue" family="Microsoft Sans Serif">ByVal e <font color="blue" family="Microsoft Sans Serif">As System.Windows.Forms.StartupEventArgs) _ <font color="blue" family="Microsoft Sans Serif">Handles <font color="blue" family="Microsoft Sans Serif">Me.Startup <font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Sub</pre> | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">Private <font color="blue" family="Microsoft Sans Serif">Sub MyApplication_StartupNextInstance(<font color="blue" family="Microsoft Sans Serif">ByVal Sender <font color="blue" family="Microsoft Sans Serif">As <font color="blue" family="Microsoft Sans Serif">Object, _ <font color="blue" family="Microsoft Sans Serif">ByVal e <font color="blue" family="Microsoft Sans Serif">As System.Windows.Forms.StartupNextInstanceEventArgs) _ <font color="blue" family="Microsoft Sans Serif">Handles <font color="blue" family="Microsoft Sans Serif">Me.StartupNextInstance <font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Sub</pre> | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">Private <font color="blue" family="Microsoft Sans Serif">Sub MyApplication_UnhandledException(<font color="blue" family="Microsoft Sans Serif">ByVal sender <font color="blue" family="Microsoft Sans Serif">As <font color="blue" family="Microsoft Sans Serif">Object, _ <font color="blue" family="Microsoft Sans Serif">ByVal e <font color="blue" family="Microsoft Sans Serif">As System.Threading.ThreadExceptionEventArgs) _ <font color="blue" family="Microsoft Sans Serif">Handles <font color="blue" family="Microsoft Sans Serif">Me.UnhandledException <font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Sub</pre> | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Class</pre> | ||
|
||
<pre><font color="blue" family="Microsoft Sans Serif">End <font color="blue" family="Microsoft Sans Serif">Namespace</pre> | ||
```vb | ||
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](http://ea.3leaf.com/2004/06/application_lev.html) for a pretty screenshot 🙂 |
Oops, something went wrong.