Skip to content

Conversation

@jpobst
Copy link
Collaborator

@jpobst jpobst commented Mar 8, 2025

Fixes #87

The ListBox used in a ComboBox raises its SelectedIndexChanged on MouseDown, which closes the ComboBox dropdown. This causes the subsequent MouseUp event to be processed by the Form/Control that was underneath the ComboBox which is not desired.

Allow the ComboBox to set an internal property on the ListBox that tells it to change the SelectedIndexChanged event on MouseUp instead. This appears to match Winforms behavior better as well.

@jpobst jpobst merged commit 44519ce into main Mar 8, 2025
3 checks passed
@jpobst jpobst deleted the combobox-mouse-leak-fix branch March 8, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

at gallery > imagelist > clicking an item inside dropdown also click the chekbox below it...

2 participants