Lst1.DataSource = ds.Tables(0) Lst1.ValueMember = "IDN" Lst1.DisplayMember = "IDN"
Dim ds As New DataSet() Dim da As New System.Data.SqlClient.SqlDataAdapter("Query String", con) da.Fill(ds, "DemoName")'give any name Lst1.DisplayMember = "IDN" 'give field name which you want's to display in list box. Lst1.DataSource = ds.Tables("DemoName")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)