From cf1bf85e01c8d99f052c09b72d2fb2bbbc0b99b0 Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Thu, 21 Sep 2017 17:16:49 -0500 Subject: Added the SOS code (VB and C#) Very, very incomplete (C# isn't *remotely* complete.) --- ShiftOS/ApplicationEvents.vb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ShiftOS/ApplicationEvents.vb (limited to 'ShiftOS/ApplicationEvents.vb') 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 + -- cgit v1.2.3