请教怎样实现程序运行自动缩小到系统托盘里? 请教用c#写的窗体程序,请教怎样实现程序运行自动缩小到系统托盘里?点击系统托盘的图标程序又正常显示出来,点程序的最小化和关闭按钮程序自动缩小到托盘里,就像qq一样? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 托盘private void Form1_SizeChanged(object sender, EventArgs e) { if(this.WindowState == FormWindowState.Minimized) { this.Hide(); this.notifyIcon1.Visible=true; } }private void notifyIcon1_Click(object sender, EventArgs e) { this.Visible = true; this.WindowState = FormWindowState.Normal; this.notifyIcon1.Visible = false; } log4net中的问题 我找个男朋友也学软件好吗? Failed to access IIS metabase 用2005TableAdapter提交一个表和分别提交表中的行相比,更新数据库的性能有没有区别? 有什么办法可以实现图片文字识别? 我想用C#进行网络编程``请问看什么书? 请大虾相帮助,谢谢,特急,再线等!!! 我想征求成长中的一些意见,请高手指点~~~ 安装vs2005后,再卸载vs2003时说什么安装程序无法确定安装的有效顺序 求:project2003序列号 文件改名代码 100分恳求打印控件和代码
private void Form1_SizeChanged(object sender, EventArgs e)
{
if(this.WindowState == FormWindowState.Minimized)
{
this.Hide();
this.notifyIcon1.Visible=true;
}
}private void notifyIcon1_Click(object sender, EventArgs e)
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}