Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox does not honor 'Displaymember' #46

Open
SupremeC opened this issue Nov 6, 2020 · 0 comments
Open

Combobox does not honor 'Displaymember' #46

SupremeC opened this issue Nov 6, 2020 · 0 comments

Comments

@SupremeC
Copy link

SupremeC commented Nov 6, 2020

When the ComboBox has its DisplayMember property set to access a specific property of the displayed items, ToString() may not give the expected text. The fix for this is to use;

GetItemText(Items[e.Index])

Two methods in class 'DarkComboBox' needs to be updated;

  • PaintCombobox()
  • OnDrawItem(DrawItemEventArgs e)()
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

No branches or pull requests

1 participant