PotatOBiTz
✅ Changing the individual font of items in a Combo Box - C# Windows Forms
hmm, I want the combo box to display "Calibri" for example instead of "[Font Family: Name=Calibri]" when I select it from the list of items. But I don't know what's causing it to be like that, and which to change
24 replies
✅ Changing the individual font of items in a Combo Box - C# Windows Forms
perhaps I did, this came from the code snippet I found from stack overflow btw, I don't completely understand what is happening aside from that
DataSource
is a collection of objects and that DrawItem
changes how a combo box/listbox is drawn. The rest I have a vague understanding24 replies
✅ Changing the individual font of items in a Combo Box - C# Windows Forms
I tried to declare variables to hold the System.Drawing.FontFamily.Families, then put it inside cboFont.DataSource (something like a cboFont.DataSource = font.Name) so I can put a .Name on the variable, but ig that doesn't work. I've never worked with DrawItem events nor .DataSource, this is perhaps my first time trying to understand these
24 replies