AlexMesquita Posted May 23, 2004 Posted May 23, 2004 How can I preview the fonts inside a combobox just like the fontcombo from Microsoft word? This is my code: Dim ff1 As FontFamily Dim ifc1 As New System.Drawing.Text.InstalledFontCollection For Each ff1 In ifc1.Families cboFonts.Items.Add(ff1.Name) Next Quote
CattleRustler Posted May 23, 2004 Posted May 23, 2004 Isn't there a FontDialog control? I could be wrong. Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
AlexMesquita Posted May 23, 2004 Author Posted May 23, 2004 Isn't there a FontDialog control? I could be wrong. Yes, but I don't want to use it because I can not let the user change the size of the fonts. Quote
*Gurus* divil Posted May 24, 2004 *Gurus* Posted May 24, 2004 You'll need to respond to the DrawItem and MeasureItem events the combobox raises. Look in to owner drawing. 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.