using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using System.Threading; namespace Permissions { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 form1 = new Form1(); Application.ThreadException += new ThreadExceptionEventHandler(form1.UnhandledThreadExceptionHandler); Application.Run(form1); } } }