Closing/ending a windows app.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I have a windows app with a file menu on it. When the person picks
file->exit, I want to close the application. I have in the menu click event
Application.Exit() but it seems to leave the process lying around.

How do I close an application from a window so the entire process gets
closed down?

TIA - Jeff.
 
I have a windows app with a file menu on it. When the person picks
file->exit, I want to close the application. I have in the menu click event
Application.Exit() but it seems to leave the process lying around.

How do I close an application from a window so the entire process gets
closed down?

TIA - Jeff.

Locate main window; if you're closing entire application from other
form using multiple forms, eg: from Form2,
you can call "Form1.Close" or if you're using just a single form
(Form1) you can call "Me.Close" rather
than using "application.exit" if it helps.

Hope this helps,

Onur Güzel
 
Form1.Dispose(true)

kimiraikkonen said:
Locate main window; if you're closing entire application from other
form using multiple forms, eg: from Form2,
you can call "Form1.Close" or if you're using just a single form
(Form1) you can call "Me.Close" rather
than using "application.exit" if it helps.

Hope this helps,

Onur Güzel
 
Back
Top