菜鸟问题,请指教! 系统托盘图标出不来,notifyIcon要怎样设置啊?晕死了! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在form中添加一个NotifyIcon控件this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);notifyIcon1.Icon = new Icon("app.ico");//指定一个图标notifyIcon1.Visible = false;notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);private void Form1_SizeChanged(object sender, EventArgs e){ if (this.WindowState==FormWindowState.Minimized)//最小化 { his.ShowInTaskbar = false; this.notifyIcon1.Visible=true; }}private void notifyIcon1_Click(object Sender, EventArgs e)//单击系统栏图标激活窗体{ if (this.WindowState == FormWindowState.Minimized) this.WindowState = FormWindowState.Normal; this.Activate(); this.notifyIcon1.Visible = false; this.ShowInTaskbar = true;} 控件DevExpress xtraTabbedMdiManager 求解 AspNetPager ID="AspNetPager1" 【求助】不知道题目咋写,高手请进 我用SharpZipLib作的压缩包,在解压缩就会出现如下错误 如何拦截Form.Show 数据库操作错误 SQL Server 2005 服务启动不了,怎么办? (c#+ORACLE)客户端连接服务器端,软件连接失败!! 请对c#程序感兴趣的大侠来看看 如何根据Name的值取道Hashtable 的内容?? 再散100分,关于摄像头捕获照相问题,还没有解决,解决了再加分 关于静态方法
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
notifyIcon1.Icon = new Icon("app.ico");//指定一个图标
notifyIcon1.Visible = false;
notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);private void Form1_SizeChanged(object sender, EventArgs e)
{
if (this.WindowState==FormWindowState.Minimized)//最小化
{
his.ShowInTaskbar = false;
this.notifyIcon1.Visible=true;
}
}private void notifyIcon1_Click(object Sender, EventArgs e)
//单击系统栏图标激活窗体
{
if (this.WindowState == FormWindowState.Minimized)
this.WindowState = FormWindowState.Normal;
this.Activate();
this.notifyIcon1.Visible = false;
this.ShowInTaskbar = true;
}