WinForm中想实现当单击最小化按钮后,整个窗体以图标的形式缩小到右下角托盘中双击托盘的图标后恢复原窗体,怎么做? http://expert.csdn.net/Expert/topic/990/990675.xml?temp=.2969629 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在你的托盘程序的双击事件中写上这句:this.WindowState = FormWindowState.Normal;也就是private void notifyIcon1_DoubleClick(object sender, System.EventArgs e) { this.WindowState = FormWindowState.Normal; } 縮小到托盤﹕在窗體的Resize事件中處理﹕if(this.WindowState==FormWindowState.Minimized){ this.Visible=false;}雙擊托盤恢復窗體﹕private void notifyIcon1_DoubleClick(object sender, System.EventArgs e){ this.Visible=true; this.WindowState=FormWindowState.Normal;}不知能不能得點分﹖ 整个窗体以图标的形式缩小到右下角托盘private void menuItem1_Click(object sender, System.EventArgs e) { this.Hide(); this.notifyIcon1.Icon=this.Icon; }双击托盘的图标后恢复原窗体private void notifyIcon1_DoubleClick(object sender, System.EventArgs e) { this.Show(); } 縮小到托盤﹕在窗體的Resize事件中處理﹕if(this.WindowState==FormWindowState.Minimized){ this.Visible=false;}雙擊托盤恢復窗體﹕private void notifyIcon1_DoubleClick(object sender, System.EventArgs e){ this.Visible=true; this.WindowState=FormWindowState.Normal;}试过了,能用 private void Form1_Deactivate(object sender, System.EventArgs e) { this.Hide; } private void notifyIcon1_DoubleClick(object sender, System.EventArgs e) { this.Show; this.WindowState=FormWindowState.Normal; this.Activate; } VS打包问题 .net里一个页面运行的时间(C#) 怎么把所有的字母、标点符号替换成空???是用正则表达试吗??希望高手帮忙!!!!!! datagridview输入数字和一个小数点??? 批量录入数据的界面,大家都是怎么做的? 数据库连接问题 怎样用键盘事件来控制控件上下左右移动? dataGridView如何改变“当前单元格” 请问哪位大虾晓得怎么修复iis;不要重新安装.谢谢! csdn 网站怎么这么慢啊! 简单的查找重复字符串问题 配置.net服务器,需要安装那些东西?
this.WindowState = FormWindowState.Normal;
也就是
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.WindowState = FormWindowState.Normal;
}
在窗體的Resize事件中處理﹕
if(this.WindowState==FormWindowState.Minimized)
{
this.Visible=false;
}
雙擊托盤恢復窗體﹕
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Visible=true;
this.WindowState=FormWindowState.Normal;
}
不知能不能得點分﹖
private void menuItem1_Click(object sender, System.EventArgs e)
{
this.Hide();
this.notifyIcon1.Icon=this.Icon;
}双击托盘的图标后恢复原窗体
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
}
在窗體的Resize事件中處理﹕
if(this.WindowState==FormWindowState.Minimized)
{
this.Visible=false;
}
雙擊托盤恢復窗體﹕
private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Visible=true;
this.WindowState=FormWindowState.Normal;
}
试过了,能用
{
this.Hide;
} private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show;
this.WindowState=FormWindowState.Normal;
this.Activate;
}