Private Sub Application_AppEvent(ByVal EventType As bouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent Select Case EventType Case bouiCOM.BoAppEventTypes.aet_ShutDown Application.MessageBox("qwert") System.Windows.Forms.Application.Exit()
{
swich (EventType)
{case bouiCOM.BoAppEventTypes.aet_ShutDown:
Application.MessageBox("qwert");
System.Windows.Forms.Application.Exit();