获取combobox
发布时间:2020-12-17 08:09:46 所属栏目:百科 来源:网络整理
导读:'获取ComboBox Try Dim StrCon As String = Label1.Text Dim MyConn As OleDbConnection = New OleDbConnection() MyConn.ConnectionString = StrCon Dim StrCom As String = "sql" Dim MyData As New DataSet MyConn.Open() Dim mycom As OleDbDataAdapter
'获取ComboBox Try Dim StrCon As String = Label1.Text Dim MyConn As OleDbConnection = New OleDbConnection() MyConn.ConnectionString = StrCon Dim StrCom As String = "sql" Dim MyData As New DataSet MyConn.Open() Dim mycom As OleDbDataAdapter = New OleDbDataAdapter(StrCom,MyConn) mycom.Fill(MyData,"1") ComboBox1.DataSource = MyData ComboBox1.DisplayMember = "1.1" ComboBox1.ValueMember = "1.2" MyConn.Close() Catch ex As Exception MsgBox("出错!") End Try (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- net.sf.json.JSONException: java.lang.reflect.Invocation
- 我将学习什么样的C来制作自己的操作系统内核?
- 使用ajax和后端交互,前端用echarts显示数据
- "Expression of type "UIViewController?&#
- postgresql – postgres中的延迟索引
- 工厂模式的Assembly.Load(path).CreateInstance(className)
- 正则表达式 整数&正整数
- c# – ASP.NET MVC混合模式身份验证
- 如何将ID分配给同一级别的xml节点
- c-typeid用于多态类型