Link to home
Start Free TrialLog in
Avatar of pointeman
pointemanFlag for United States of America

asked on

ComboBox DropDown Item Click?

I have ComboBox in 'Simple' mode and 'Autocomplete'.

Q. How can I place the Moused-Clicked dropdown selected item into the textbox portion of ComboBox.

This would then trigger the selectedindexchanged event.

Avatar of AndyAinscow
Flag of Switzerland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jafrazee

turn autopostback  to true
Just realised - You need the style to be dropdown.  With simple I get the same as you do - the text box isn't autofilled when selected by mouse click.
Hello, You have to set the property AutoPostBack = True then, write the code in selectedIndexChanged event of a combobox. txtSample.Text = ddlSample.SelectedValue or SelectedItem
Avatar of pointeman


Windows Form project and 'Simple' Combobox mode is must have.
I disabled 'Autocomplete' so I dont have the dropdown to deal with anymore. Just using combobox as-is for now.