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

Lists, Collections and Arrays
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. Version 3.1, released 01/05/2005: added methods SelChange to both List and combo controls (however with list control, Click is still recommended), added "Selected" property. Basically tied together loose and unfinished ends (at the request of quite a few).

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.

Download advanced