pointeman
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.
Q. How can I place the Moused-Clicked dropdown selected item into the textbox portion of ComboBox.
This would then trigger the selectedindexchanged event.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
Windows Form project and 'Simple' Combobox mode is must have.
ASKER
I disabled 'Autocomplete' so I dont have the dropdown to deal with anymore. Just using combobox as-is for now.