aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS/ApplicationEvents.vb
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS/ApplicationEvents.vb')
-rw-r--r--ShiftOS/ApplicationEvents.vb20
1 files changed, 20 insertions, 0 deletions
diff --git a/ShiftOS/ApplicationEvents.vb b/ShiftOS/ApplicationEvents.vb
new file mode 100644
index 0000000..973056e
--- /dev/null
+++ b/ShiftOS/ApplicationEvents.vb
@@ -0,0 +1,20 @@
+Imports System.IO
+
+Namespace My
+ ' The following events are available for MyApplication:
+ '
+ ' Startup: Raised when the application starts, before the startup form is created.
+ ' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
+ ' UnhandledException: Raised if the application encounters an unhandled exception.
+ ' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
+ ' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
+ Partial Friend Class MyApplication
+
+ Protected Overrides Function OnStartup(ByVal eventArgs As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) As Boolean
+ Return True
+ End Function
+ End Class
+
+
+End Namespace
+