如何在点击一个程序关闭按钮时不关闭窗口而是最小化到系统托盘 我现在的一个多文档窗口程序点击主窗口时要先关闭子窗口,我想在点击关闭按钮时不关闭程序而是最小化到系统托盘如何实现 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void frm_BasicForm_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; WindowState = FormWindowState.Minimized; } VS.Net2005里面 有NotifyIcon,你可以看看这个实现托盘要实现最小化而不关闭把 ,可以覆盖原来的关闭方法响应,如下protected override void OnClosing(CancelEventArgs e) { this.ShowInTaskbar = false; this.WindowState = FormWindowState.Minimized; e.Cancel = true; } NotifyIcon然后在关闭里面写 sanniko(雁衔泥) 上面的事件 DataGridView如何改变选中行 为什么 IBatis.net 会把 statements id 当成存储过程名? 新手求教 C#asp.net生成 Excel的问题 哪位兄台有YogiCommon.dll源码 内索引数错误 请教!!!如何保存前先验证????? MM十万火急,送分,我用_dt.Rows.InsertAt(Row,0)怎么插入在最后一行? 请问C#中有关时间间隔,和进度条的使用 本地化? DataGrid分页后,如何在foot中实现小计行和合计行 在父窗口中打开一个子窗口关闭子窗口后如何刷新父窗口中的DATAGRID
{
e.Cancel = true;
WindowState = FormWindowState.Minimized; }
protected override void OnClosing(CancelEventArgs e)
{
this.ShowInTaskbar = false;
this.WindowState = FormWindowState.Minimized;
e.Cancel = true;
}
然后在关闭里面写 sanniko(雁衔泥) 上面的事件