This is my code for displaying records from database to combo box but, when I edit the code and make it for textbox, .DataSource and .ValueMember are not working for textboxes.
Dim sqlconn As New SqlClient.SqlConnection
sqlconn.ConnectionString = "server = SKPI-APPS1;" & _
"Database = EOEMS;integrated security=true"
Dim dt As New DataTable
sqlconn.Open()
Dim da As New SqlDataAdapter("SELECT * FROM tblOfficeEquipmentProfile", sqlconn)
da.Fill(dt)
cmbLocationCode.DataSource = dt
cmbLocationCode.ValueMember = "OE_ID"
sqlconn.Close()
What is the corresponding code for displaying data from database using textboxes?