程序最小化时候模仿QQ这样的效果怎么做? 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.Show(); this.ShowInTaskbar = true; this.WindowState = FormWindowState.Normal; } private void Form1_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { this.Hide(); this.notifyIcon1.Visible = true; } } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { e.Cancel = true; this.ShowInTaskbar = true; this.Hide(); } } 问一个C/S IM的设计问题 怎么获得windows 拖拽对象 VS2008安装失败:requirements and software Prerequisite是不是OS问题? 求类似QQ好友分类功能的控件 还是关于返回值的问题 请教c#+access 登录的问题 关于windows服务的一个问题 水晶报表条码打印问题 新建 Web用户控件 怎么在我的用户控件里看不到!急急急急急急急急急急 C#中没有inline吗?那么哪些函数会被实现为内联了? 请问怎么实现像System.Web.HttpContext.Current的当前上下文的功能。 winform打开时显示上次关闭时的节点功能
{
this.Show();
this.ShowInTaskbar = true;
this.WindowState = FormWindowState.Normal;
}
private void Form1_SizeChanged(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
this.Hide();
this.notifyIcon1.Visible = true;
}
} private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing)
{
e.Cancel = true;
this.ShowInTaskbar = true;
this.Hide();
}
}