| 发表于:2007-03-23 10:59:56 楼主 |
请教:要求在form_load事件中进行某些判断,通不过则不加载窗体。请问能否做到?(由于某些条件限制,不能在窗体frmorder.show()之前进行判断) 代码: private void frmorder_load(object sender, eventargs e) { this.cursor = cursors.waitcursor; try { …… } catch (exception ex) { messagebox.show(ex.message); this.close(); //这句不可行,出错。怎么改? } finally { this.cursor = cursors.default; } } |
|
|
|
|