Avatar of pointeman
pointeman
Flag 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.

C#

Avatar of undefined
Last Comment
pointeman

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
AndyAinscow

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
jafrazee

turn autopostback  to true
AndyAinscow

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.
SAMIR BHOGAYTA

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
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
pointeman

ASKER
Windows Form project and 'Simple' Combobox mode is must have.
pointeman

ASKER
I disabled 'Autocomplete' so I dont have the dropdown to deal with anymore. Just using combobox as-is for now.