Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox Item Selection Event

Status
Not open for further replies.

baileyr

Technical User
Joined
Aug 23, 2002
Messages
3
Location
US
In VB.NET I've been trying to find something to fire an event based solely on selecting a new item from a combobox drop down list, not just the "drop-down" event.
I've tried SelectedValueChanged, TextChanged, ValueMemberChanged, and DisplayMemberChanged events, but have had only inconsistent behavior.
The combobox data is bound to a dataset datatable (OleDb), and gets its lookup values from another dataset datatable using DataSource, DisplayMember, and ValueMember properties for the combobox control.
If there isn't an event handler, is there "simple, short, and sweet" way to check if a selection has actually been made? I'm hoping I merely overlooked it.
 
The event you are after is SelectedIndexChanged.....

But are you doing this in ASP??? If so, have you changed the AutoPostBack property to yes???

Craig
 
Thank you for your tip.
Also, I'm not using ASP for this particular project, just plain ol' VB.NET
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top