摘要: 在Visual Studio中新建了一个类库项目,后来添加了个窗体,作为启动窗体。由于不是新建的windows forms 应用程序上,VS中没有自动添加启动项目,运行时显示没有启动项目。解决方法:手动添加主函数,代码如下:class program { [STAThread] static void Main() {System.Windows.Forms.Application.EnableVisualStyles();System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);System.Windo 阅读全文
posted @ 2012-05-26 20:28 DayDreamInGIS 阅读(175) 评论(0) 推荐(0) 编辑