User-Drawn Font List/Font Combo Controls With a WYSIWYG Display (Version 3.0)

Nathan Moschkin

Version Compatibility: Visual Basic 6

More information:
These are font list/font combo OCXs that lists installed fonts on a system and allow you to return the name and the properties of a selected font. They provide much more than the standard example in which font names are enumerated in a list-box, however. For one, they are completely user-drawn, meaning that the OCXs contain no constituent controls and their appearance is determined at run-time by VB Code. In addition, they list the fonts as they appear (e.g., the Font Name "Times New Roman" is displayed in Times New Roman font, etc.).

Version 3.0, released 01/31/2002, includes a number of enhancements and adds the font combo control.

This is a very good and very advanced illustration of GDI programming in VB.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.