Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close all forms in application 1

Status
Not open for further replies.

Mannga

Programmer
Jun 21, 2002
85
GB
Hi All,

Pretty simple question I think.
How do I close all the forms in a C# application?

Thanks,
Gavin
 
Obviously was not as simple as I thought....

The solution is though.

Application.Exit()

Just in case someone else would like to know.
Cheers,
Gavin
 
Thanks for taking the time to come back and answer it Gavin, it helped me - I'm very n00b to C# and relying on people like you to help me bit by bit.

Regards,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top