Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

List all font in list box (VB6)

Posted on 1998-11-16
2
Medium Priority
?
1,009 Views
Last Modified: 2013-12-03
I want to list all font available on computer in a list box! Please post your sample code! Need this for VB6
0
Comment
Question by:Acid_Buzz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
schild earned 800 total points
ID: 1445158
This is the needed code

********************************
    Dim Index As Integer
   
    For Index = 0 To Screen.FontCount
        List1.AddItem Screen.Fonts(Index)
    Next

****************************

you can rtrive the printer fornt as well like this:
********************************
    Dim Index As Integer
   
    For Index = 0 To Printer.FontCount
        List1.AddItem Printer.Fonts(Index)
    Next

****************************

Good Luck
Schild
0
 

Author Comment

by:Acid_Buzz
ID: 1445159
Ok.. I don't know why i post this question.. anyway.. i give you the point.. heheh..
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question