如何使应用程序最小化的时候成图标现实在屏幕右下角成小图标 如何使应用程序最小化的时候成图标现实在屏幕右下角成小图标,象QQ或MSN那样?谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 托盘..加个notifyIcon控件就行了..再在主窗体事件里加上. private void Form1_SizeChanged(object sender, System.EventArgs e) { if(this.WindowState==System.Windows.Forms.FormWindowState.Minimized) { //窗体隐藏 this.notifyIcon1.Visible=true; //窗体显示时,托盘图标可见 this.ShowInTaskbar = false;//任务栏隐藏 } else if(this.WindowState==System.Windows.Forms.FormWindowState.Normal) { this.notifyIcon1.Visible=false; this.ShowInTaskbar = true; } } 多线程问题求助 wpf中为什么按钮移动上去动画变大,下面的倒影不放大 问个弱智的问题,在线等 C#数据库编程 c sharp编辑中的Tab键 vb.net代码转为c#代码,模板的 Winform TreeListView控件如何绑定数据?急~~~~~~~~~~~~~ 请问Hashtable的一个问题,高手请进 急问(正则表达式) C#SD卡读没问题 但是写SD只能写FAT表之前的扇区,FAT表和数据区没权限写 datagrid 加checkbox的问题;he datagrid中 加textbox列的的问题; 为什么引用CrystalDecisions.Shared会提示错误?
再在主窗体事件里加上.
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState==System.Windows.Forms.FormWindowState.Minimized)
{
//窗体隐藏
this.notifyIcon1.Visible=true; //窗体显示时,托盘图标可见
this.ShowInTaskbar = false;//任务栏隐藏
}
else if(this.WindowState==System.Windows.Forms.FormWindowState.Normal)
{
this.notifyIcon1.Visible=false;
this.ShowInTaskbar = true;
}
}