为什么托盘右键不行
Clr = newFileButton.ForeColor;NotifyIcon Tyin = new NotifyIcon();
Tyin.Text = "111111111111111";
Tyin.Visible = true;
Tyin.Click +=new EventHandler(Tyin_Click);
MenuItem[] mnuItms = new MenuItem[3]; mnuItms[0] = new MenuItem();
mnuItms[0].Text = "用Visual C#做托盘程序!";
mnuItms[0].Click+=new EventHandler(this.dd);
mnuItms[1] = new MenuItem("-"); mnuItms[2] = new MenuItem();
mnuItms[2].Text = "退出系统";
mnuItms[2].Click +=new EventHandler(this.cc);
mnuItms[2].DefaultItem = true;
ContextMenu dir= new ContextMenu(mnuItms);
Tyin.ContextMenu = dir;
}