private void GisForm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Hide();
}
必须是这样写.
如果没有第一句代码 e.Cancel = true;
窗口最终是关闭的.
private void GisForm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
this.Hide();
}
必须是这样写.
如果没有第一句代码 e.Cancel = true;
窗口最终是关闭的.