Hi Frnds,
i have four comboboxs that are dependant on each other selection.Its working fine but but what i want is to show "select an item" on zero selectedindex of each combobbox when form load.How can i do that???????what i have done is like as:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
con.Open()
Dim dt2 As New DataTable("class")
Dim sql2 As String
sql2 = ("SELECT Code+' : '+ Name as Name from class")
Dim da2 As New OleDbDataAdapter
da2 = New OleDbDataAdapter(sql2, con)
da2.Fill(dt2)
cmbclass.DropDownStyle = ComboBoxStyle.DropDownList
cmbclass.DataSource = dt2
cmbclass.DisplayMember = "Name"
cmbclass.ValueMember = "Name"
con.Close()
AddHandler cmbclass.SelectedIndexChanged, AddressOf cmbclass_SelectedIndexChanged
the other combobxes are populating like same code ...