请教一个Form.Close的问题
程序代码:...
void Form1_Load(..)
{
Func1();
Func2();
Func3();
}
void Func1()
{
if (...) this.Close();
...
}
void Func2()
{
if (...) this.Close();
...
}
void Func3()
{
if (...) this.Close();
...
}程序调用Close()方法后,并不会马上关闭窗体,而是继续运行完后面的代码后才关闭窗体。比如:Func1()中调用了Close(),但是程序还会继续往后运行,Func2、Func3也执行了一遍。
我想在调用Close()后就关闭窗体,不要运行后面的代码了,怎么实现呀??
[ 本帖最后由 zhp223 于 2011-3-19 17:51 编辑 ]









