How Do I load a combobox with out firing off the interactive change

  • Thread starter Thread starter Phillip
  • Start date Start date
P

Phillip

Or what events can I use to return the cbo.Selectedtext value after the
cbobox is loaded

Say I wanted to display a messagebox with the selected value once the item
is selected by the user.

currently as the box is getting bound to the data the SelectedIndexChanged
event is firning off.


'Bind the data to the combobox

cboTP.DataSource = dsTP.Tables.Item("TPIDs")
cboTP.DisplayMember = "TP_NAME"
cboTP.ValueMember = "TP_CODE"
cboTP.DataBindings.Add("SelectedValue", dsTP.Tables("TPIDs"), "TP_CODE")

Thanks,
Phil
 
Back
Top