摘要:
好久没写过WinForm程序了,昨天闲来无事就试着写个玩玩。界面中有两个combobox控件,第二个combobox控件中绑定值是根据第一个combobox值而定的。当时自己写的代码是: 1 private void btnGetDBs_Click(object sender, EventArgs e) 2 { 3 string strconnection = "数据库连接字符串" ; 4 conn = new SqlConnection(strconnection); 5 string s... 阅读全文