c# - combobox focus on beginning of text after selection -
i'm using winforms combobox has wider drop down width it's size. when user selects there, displays ending of text instead of beginning. how default show text starting start of string?
ie. combobox has items
- atlanta georgia
- athens georgia
- miami florida
- ....
and user picks 1 , see in box afterwards "a georgia"
no, unfortunately don't have realestate make combobox bigger, , order of words in list won't changed.
thanks!
the trick call select after selectedindexchanged event happens:
private void combobox1_selectedindexchanged(object sender, eventargs e) { this.begininvoke(new action(() => { combobox1.select(0, 0); })); }
Comments
Post a Comment