using System; using System.Windows.Forms; namespace SystemTrayApp { /// /// /// static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Show the system tray icon. using (ProcessIcon pi = new ProcessIcon()) { pi.Display(); // Make sure the application runs! Application.Run(); } } } }