|
|
|
สอบถามเรื่อง combobox ใครมีแนวทางดี แนะนำหน่อยครับ |
|
|
|
|
|
|
|
textbox1.text = CB1.Text
|
|
|
|
|
Date :
2013-11-15 15:16:05 |
By :
"_" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ComboBox1.SelectedValue
|
|
|
|
|
Date :
2013-11-16 10:39:59 |
By :
Downrung |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Public Sub DBcombo()
Dim sql As String
sql = "SELECT * FROM Station "
Dim cmd As New SqlCommand(sql, conn)
Dim adapter As New SqlDataAdapter(cmd)
Dim data As New DataSet()
adapter.Fill(data, "S1")
Me.ComboBox1.DataSource = data.Tables("S1")
Me.ComboBox1.DisplayMember = data.Tables("S1").Columns("Station_Name").ToString
Me.ComboBox1.ValueMember = data.Tables("S1").Columns("Station_ID").ToString
'DataGridView1.DataSource = data.Tables("Prod_whts")
End Sub
ประมาณนี้ป่ะครับลองใช้ดู
|
|
|
|
|
Date :
2013-11-18 11:09:08 |
By :
Keeperza |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|