static void Main() { Xpcom.Initialize(Path.Combine(Directory.GetCurrentDirectory(), "xulrunner")); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SelectionForm sf = new SelectionForm(); Application.Run(sf); if (sf.ServerInfo != null) { Application.Run(new WordLaunch(sf.ServerInfo)); } }