Closing a Windows Form application

  • Thread starter Thread starter Dan Johnson
  • Start date Start date
D

Dan Johnson

I have written a sample game but when I try and exit the program with
the
Close()
and Application.Exit() command, the form closes, but it is still in
the program list via the Win 2000 Task Manager.

How do you close and exit a program in C#?

I do have a timer on the form but it is disabled before it gets to the
close commnd.

Thanks
Dan
 
Hi Dan,

Do you have a worker thread?

Normally all you have to do to exit a win app is call the Close() method in
the main form. I have seen others post in the past complaining of the same,
what is your structure of forms? do you have several forms or only one ?

Maybe a search in google will give you some more light.
Cheers,
 
Back
Top