日期:2014-05-17 浏览次数:21078 次
<connectionStrings> <add name="AttendManager.Properties.Settings.ConnectionString" connectionString="Dsn=AttendManager;dbq=\DB\db.mdb;driverid=25;fil=MS Access;maxbuffersize=2048;pagetimeout=5;uid=admin" providerName="System.Data.Odbc" /> </connectionStrings>
private void LoginFrm_Load(object sender, EventArgs e) { //this.用户TableAdapter.Fill(this.dataSet1.用户); string m_connection = new OdbcConnection("Dsn=AttendManager"); m_connection.Open(); GetUsers(); }