Guest takapenkki Posted November 14, 2002 Posted November 14, 2002 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 Quote
*Gurus* divil Posted November 14, 2002 *Gurus* Posted November 14, 2002 (edited) Here's a sample I knocked up for you, it owner draws a listbox to show installed fonts. Edited November 14, 2002 by divil Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Gurus* divil Posted November 14, 2002 *Gurus* Posted November 14, 2002 Here it is: Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Guest takapenkki Posted November 14, 2002 Posted November 14, 2002 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 Quote
*Gurus* divil Posted November 14, 2002 *Gurus* Posted November 14, 2002 You're welcome :) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.