码迷,mamicode.com
首页 > 其他好文 > 详细

Program.cs

时间:2017-03-16 16:24:56      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:summary   cep   read   except   .sh   enable   name   win   com   

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace CS2013
{
  static class Program
  {
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main()
    {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);

      try
      {
        SqlManage.cnn = new SqlConnection(SqlManage.cnnstring);
        SqlManage.cnn.Open();
      }
      catch (Exception ex)
      {
        MessageBox.Show(ex.Message);
        Application.Exit();
        return;
      }

      Application.Run(new frmMain());
    }
  }
}

 

Program.cs

标签:summary   cep   read   except   .sh   enable   name   win   com   

原文地址:http://www.cnblogs.com/CodyLuo/p/6559953.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!