如何还原一个窗口 最笨的办法取最小化时的location,还原的时候设置回去 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我试的可以,你贴上代码来看看。 private void Form5_Resize(object sender, System.EventArgs e) { if ( this.WindowState == FormWindowState.Minimized ) { MessageBox.Show( this.Location.ToString() ); this.WindowState = FormWindowState.Normal; MessageBox.Show( this.Location.ToString() ); } } 这个是我的代码private void notifyIcon1_Click(object sender, System.EventArgs e) { this.WindowState=FormWindowState.Normal; this.ShowInTaskbar = true; this.notifyIcon1.Visible=false; } private void Form1_SizeChanged(object sender, System.EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { this.ShowInTaskbar = false; this.notifyIcon1.Visible=true; } } 新手求助! 条件查询并显示在datagridview中 用C#调用R软件时的问题 一道很郁闷的图片题 c# 实现局域网断点续传 aspx页面在程序运行时 更改后无效,需要退出程序重新运行才可以看到效果? 高分:求代码:GridView入门问题 這條SQL語句如何寫才正確,關於除數和被除數是零的,請高手指教 ☆☆☆关于DataGrid超难问题.UP有分!☆☆☆ c#如何与数据库连接,修改图片???急!!!!!在线给分! textbox的问题 用c#如何将摄相头里的动态图象读出并显示出来? process占用资源的释放问题
{
if ( this.WindowState == FormWindowState.Minimized )
{
MessageBox.Show( this.Location.ToString() ); this.WindowState = FormWindowState.Normal;
MessageBox.Show( this.Location.ToString() ); }
}
private void notifyIcon1_Click(object sender, System.EventArgs e)
{
this.WindowState=FormWindowState.Normal;
this.ShowInTaskbar = true;
this.notifyIcon1.Visible=false;
} private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.ShowInTaskbar = false;
this.notifyIcon1.Visible=true;
}
}