Closing/ending a windows app.

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.
 
K

kimiraikkonen

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
 
G

Gillard

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top