using System; using System.Collections.Generic; using System.Windows.Forms; using System.Drawing; namespace WindowsApplication1 { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); NotifyIcon n = new NotifyIcon(); n.ContextMenu = new ContextMenu(); n.ContextMenu.MenuItems.Add(new MenuItem("hello there, cowboy")); n.Icon = new Icon(@"c:\source\unpacker\winzip_32.ico"); n.Visible = true; Application.Run(); } } }