在C#怎样给一个最小化的窗口发一个消息使它恢复大小?或者还有其他办法? 可以使用win32api:sendmessage,发送WM_SHOWWINDOW 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那我用this.show()按理来说也可以使窗口恢复了! yes, you can if you can get an object reference of this window. 实际上不行,我试过了!我在托盘的弹出菜单用this.show(),没用,不能恢复! private void notifyIcon_DoubleClick(object sender, System.EventArgs e) { if(this.Visible == false) //显示主界面 { this.Visible =true; this.WindowState=FormWindowState.Normal; this.menuItem1.Enabled =false; this.menuItem2.Enabled =true; } }private void Form1_Resize(object sender, System.EventArgs e) { if(this.WindowState==FormWindowState.Minimized) { this.Visible =false; this.menuItem1.Enabled =true; this.menuItem2.Enabled =false; } else { this.Visible =true; this.WindowState=FormWindowState.Normal; } }private void menuItem1_Click(object sender, System.EventArgs e)//托盘的弹出菜单 { this.Visible =true; this.WindowState=FormWindowState.Normal; } 求问继承的问题 C#与C++的类型问题 foreach对数据的处理是怎样进行的,希望大家帮一下 请求WEB上传和下载的特殊要求 高手请进,如何设定一个存储空间 诚信高分求:谁能帮我解释一下这个密码规则是怎么解的? 下载完成后怎么让客户端向服务器发送信息 MSDN最新版是多少? 枚举时一定要强制转换类型吗? 大家救命,高分,急救,sos,现场回答,高分。 十万火急的问题,请各位帮忙(关于水晶报表在Win98上的运行)给分 请问c#连接sql server方法有几种?具体如何?!分别有什么区别!?
{
if(this.Visible == false) //显示主界面
{
this.Visible =true;
this.WindowState=FormWindowState.Normal;
this.menuItem1.Enabled =false;
this.menuItem2.Enabled =true;
}
}private void Form1_Resize(object sender, System.EventArgs e)
{
if(this.WindowState==FormWindowState.Minimized)
{
this.Visible =false;
this.menuItem1.Enabled =true;
this.menuItem2.Enabled =false;
}
else
{
this.Visible =true;
this.WindowState=FormWindowState.Normal;
}
}private void menuItem1_Click(object sender, System.EventArgs e)//托盘的弹出菜单
{
this.Visible =true;
this.WindowState=FormWindowState.Normal;
}