How to pupolate the Combobox in VB.Net, the items are from DataSet… Here’s my code
Dim LibDSPopulate As New DataSet
Dim LibDAPopulate As OdbcDataAdapter = New OdbcDataAdapter("SELECT DISTINCT Category FROM tblBooks", LibConn)
LibDAPopulate.Fill(LibDSPopulate, "tblBooks")
cmbCategoryF.Items.Add(LibDSPopulate)
You may use Data binding facility.
If you don’t want to use databindng then add each item using Items.Add() method.