学到的东西

1.窗体调用传参。

 1  [STAThread]
 2         static void Main(string[] args)
 3         {
 4             Application.EnableVisualStyles();
 5             Application.SetCompatibleTextRenderingDefault(false);
 6             //Application.Run(new frmtkMain(""));
 7             //Application.Run(new frmExcelToTk ());
 8             //Application.Run(new frmQueryQuestion());
 9 
10             if (args.Length > 0)
11             {
12                 Application.Run(new frmtkMain(args[0]));
13             }
14             else
15             {
16                 Application.Run(new frmtkMain(""));
17             }
18         }

 

2.app.config 不要用 来配置数据库 ,会有很多麻烦

posted @ 2012-09-25 17:42  秋官  阅读(166)  评论(0编辑  收藏  举报