子窗體重寫關閉事件,使子窗體隱藏:
<span style="white-space:pre"> </span>/// <summary>
/// 重寫OnClosing事件 解決窗口關閉不能再打開的BUG
/// </summary>
/// <param name="e"></param>
protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
{
this.Hide();
e.Cancel = true;
}