WinForms ComboBox with async business rule #4128
Unanswered
michaelcsikos
asked this question in
General
Replies: 1 comment 6 replies
-
I hate to say it @michaelcsikos, but you may be one of the few who are still building new(ish) stuff on WinForms. I'm totally willing to consider a new issue and PR for WinForms capabilities, but personally don't plan to spend time on WinForms. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've just come across some weird behaviour with
ComboBox
,DropDownStyle = DropDown
and anasync
rule.If the
AutoCompleteSource = ListItems
andAutoCompleteMode = SuggestAppend
it's selecting the first match automatically in theAutoCompleteSource
drop-down, and then the caret moves back to the start, e.g.type
R
[rule completes]
ComboBox updates to
Red
type
e
ComboBox now shows
eRed
If the
AutoCompleteMode = None
the caret moves to the start as you type a complete match, e.g.type
R
type
e
type
d
[caret now positioned before
R
]Running the rule sync fixes it, however, in this case I really would prefer to run it
async
, so I dug deeper.It turns out that if you set
AutoCompleteSource = CustomSource
and add the values toAutoCompleteCustomSource
it works perfectly.EDIT: However, you lose the ability to click the drop-down button, of course...
Beta Was this translation helpful? Give feedback.
All reactions