leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
437 stars 132 forks source link

MaterialComboBox does not refresh selected item when changed programmatically #341

Closed jackhab closed 2 years ago

jackhab commented 2 years ago

After selecting combo item programmatically via SelectedIndex property the combo does not refresh until mouse is moved over it.

This can be solved by calling Refresh() but I suppose there is more appropriate way to solve it in the control design (but I don't know how) so I'm posting it as an issue rather than pull request.

1

2

valimaties commented 2 years ago

Fixed in PR #342 Added an improvement to ComboBox, which I personally used in my applications. When hit Del key or Backspace, the index of ComboBox will become -1.

FixMaterialComboBoxSelectedIndexChangedRefresh