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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I think this may be a stupid question...

Status
Not open for further replies.

mlager

Programmer
Sep 1, 2006
74
US
...But I have a combobox that is bound to a data source. I have fields on the same form that display data based on which item is selected in the combobox. Everything is working fine. My question is, when the form loads, the first item is selected with all of its data shown. Is there a way to make it so no item is selected by default? It seems wierd having the form load with an item already selected with all of its data showing. Any advice would be appreciated.
 
Correction, it's a listbox, not a combobox. Thanks.
 
Try setting YourListBox.SelectedIndex = -1. By the way, to me it seems perfectly acceptable to have a form set on the first row when opened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top