Wednesday, July 7, 2010

C# How to Completely Exit Program

if (System.Windows.Forms.Application.MessageLoop)
System.Windows.Forms.Application.Exit();
else
System.Environment.Exit(1);

No comments: