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!

ComboBox autocomplete settings 1

Status
Not open for further replies.

malaygal

IS-IT--Management
Feb 22, 2006
192
US
I set-up the properties of a combobox in design time as follows:

DropDownStyle = DropDown
AutoCompleteMode = SuggestAppend
AutoCompleteSource = ListItems

I do not have an event for this combobox.

Works fine, until I make a selection and somehow it triggered a button click, which is a database search based on the other controls on the form.
Again, as I stated, I did not associate an event for this combobox. The search did not even use the value that was selected in this combobox.

Any help will be greatly appreciated.
 
Normally when the event is triggered by code, code in the event runs and execution goes back to the calling procedure. If you put a break point at the end of your button click event, and make a selection in your combo box, the button click event executes (as you said), but then you can step thru your code to see where the button click event was called from.


---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top