为什么右键不行啊!

赢光小虾米 2007-03-08 12:43:28
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;
}
...全文
128 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ylqmf 2007-03-09
  • 打赏
  • 举报
回复
up

110,535

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧