Hi,
I use Combobox in DropDownStyle = simple, and AutoCompleteMode, I bind DataSource for Combobox. So I have a Combobox AutoComplete with a list from Database.
When I use in DropDownStyle = DropDownList, it don't have problem.
But when I use it in Simple, when I chose a item by press Enter, Text of Combobox is cleared. I use PreviewKeyDown and set again text for Combobox. But there are 2 times occur this event, and text is set 1 times, then it is cleared.
Please help me solve this problem. Thanks.
I post 4 images. First image is I chose item.
Second image is PreviewKeyDown occur first time.
Third image is set Text of Combobox (it is cleared).
Fourth image is PreviewKeyDown occur again, then Text is cleared.