setting fonts to listbox items

  • Thread starter Thread starter takapenkki
  • Start date Start date
T

takapenkki

Guest
I am having BIG difficulties in inserting different fonts in each listbox item. My goal is to create a listbox where all fonts are displayed with their name and the style of that particular font. Is there any example available on net or anywhere? I have tried to use lot's of ownerdraw examples but those are way too complicated and most of the time code examples are also buggy. I have also tried to use drawstring method of Graphics class. Is this what I am trying to achieve too difficult or has anyone tried to make anything similar?

Thanks,
Takis
 
Here's a sample I knocked up for you, it owner draws a listbox to show installed fonts.
 
Last edited:
Thanx big time! This really helped me! I just got my own solution working somehow but this was far better and simplier than mine. I had problems with the fonts that couldn't be seen on regular style and now this solved the problem too. Huge thanks! This was quick!

best regards,
Takis
 
Back
Top