Shutdown fails when app is running

  • Thread starter Thread starter Nick Ma
  • Start date Start date
N

Nick Ma

I'm having problems getting windows to close my app when the user shuts down
or logs off.

All I have in my project is a module and a form.

The module contains the following code:

Module modMain

Sub Main()

Dim frm As New Form1

frm.ShowDialog()

End Sub

End Module

The form contains no controls or code (other than auto generated stuff).

The start-up object is set to Sub Main.

When I try to log off or shutdown, the app closes but there is no log off or
shut down!

Any ideas, - this is driving me mad!

Regards

Nick
 
* "Nick Ma said:
I'm having problems getting windows to close my app when the user shuts down
or logs off.

All I have in my project is a module and a form.

The module contains the following code:

Module modMain

Sub Main()

Dim frm As New Form1

frm.ShowDialog()

Use 'Application.Run(New Form1())' instead of the code above.
 
Back
Top