| 发表于:2007-09-04 11:40:3613楼 得分:2 |
写一个继承 applicationcontext 的类 像这样就解决关闭启动窗体的问题了 static class program { public class myapplicationcontext : applicationcontext { public myapplicationcontext() { frmsystemlogin frmstart = new frmsystemlogin(); frmstart.show(); } private void onapplicationexit(object sender, eventargs e) { } private void onformclosing(object sender, eventargs e) { } private void onformclosed(object sender, eventargs e) { } } /// <summary> /// 应用程序的主入口点。 /// </summary> [stathread] static void main() { application.run(new myapplicationcontext()); } } | | |
|