473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to List all Fonts on a system by VB usable name?

Hello,

I need to be able to list all the fonts on a system in a way I can then use
the names to format my vb app. text.

Thanks for any help,

Jack
Nov 20 '05 #1
2 8128
Thanks!!!
"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:ej**************@tk2msftngp13.phx.gbl...
Hi,

Try this.
Dim ff As FontFamily

For Each ff In System.Drawing.FontFamily.Families

ListBox1.Items.Add(ff.Name)

Next

Ken

---------------------

"jack" <ja**@mrolinux.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,

I need to be able to list all the fonts on a system in a way I can then

use
the names to format my vb app. text.

Thanks for any help,

Jack


Nov 20 '05 #2
Hello,

"jack" <ja**@mrolinux.com> schrieb:
I need to be able to list all the fonts on a system in a way I can then use the names to format my vb app. text.


\\\
Imports System.Drawing
..
..
..
Dim fntfam As FontFamily
For Each fntfam In FontFamily.Families
Console.WriteLine(fntfam.Name)
Next fntfam
///

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jean Pion | last post by:
Dear readers, I use the following to create a collection of fonts to choose from: For I = 0 To Screen.FontCount - 1 'Zero based! CurFont.AddItem Screen.Fonts(I) Next i Then, later I would...
4
by: Ken Innes | last post by:
Apparently, surrounding an ordered list by a font command is illegal. So how do I specify the font style and size for the list elements? Putting font tags on each list item works, except that the...
2
by: Casey Hawthorne | last post by:
Is there a way to determine -- when parsing -- if a word contains a builtin name or other imported system module name? Like "iskeyword" determines if a word is a keyword! -- Regards, Casey
2
by: jay.chan | last post by:
I am writing a web application to get System user name. By reading the previous post, it seems that this method works <%@ Language=VBScript %> <% Dim user, pword user =...
3
by: Bryan | last post by:
This is for a utility that I am writing to update all of our Excel reports. I currently have a form with a couple list boxes and browse buttons. One browse button allows the user to add the XLS...
2
by: Lasse Edsvik | last post by:
Hello I was wondering if you guys could show me how to list all fonts using C#? those that is supported by gdi+ that is, im using gdi+ to apply text on a pic. TIA /Lasse
2
by: Paul Hadfield | last post by:
All, Can anyone help with an example of how to use the System.DirectoryServices name space? I've found examples on Google in C# but I've had no success trying to use them. Basically, I...
2
by: Joh | last post by:
Is there a way to dynamically list all System types that exist in VB.Net? I.e. I'd like to list all types in the System namespace programatically.
1
by: umesh049 | last post by:
Hello A check constraint SYS_C0011712 is system given name to the constraint but when i want to disable it. i can' t it please give me some solution. thanks SQL> SELECT CONSTRAINT_NAME,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.