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; } 用c#在VS2008上图片轮换问题,请求帮忙! 应用程序 进程的区别 如何获取当前文件夹下的所有文件(用相对路径) .NET 2003和.NET 2005差别大吗? .net 2.0中的DataGridView是不是不能绑定join出来的DataSet啊? C# 请问这个数据访问有什么错?急........ 为什么我写的邮件发送程序中只能发送英文字符串,而发送的汉字用邮箱接收显示的是乱码, 如何才能让字符倒须输出呢? 寻一份资料 简单的查找重复字符串问题 配置.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;
}