c#中winform窗体comboBox怎么获取access数据库下每个表名,谢谢
select name from MSysObjects where type=1 and flags=0
http://blog.csdn.net/u011303126/article/details/9995143
然后通过ado.net查询返回datatable,绑定到combobox即可。
http://www.cnblogs.com/liuruitao/p/5087900.html
DataTable tbl = conn.GetSchema("tables");
这样就可以得到表名
foreach (var item in tbl.Rows)
comboBox1.Items.Add(item[0].ToString());
添加到comboBox1