RobinPerris / DarkUI

Dark themed control and docking library for .NET WinForms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combobox does not honor 'Displaymember'

SupremeC opened this issue · comments

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)()