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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top