Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
AnswerRe: Equivalent Win32 API to Control.InvokePaint? Pin
David Stone19-Oct-02 12:12
sitebuilderDavid Stone19-Oct-02 12:12 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 13:22
Li-kai Liu (Angus)19-Oct-02 13:22 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 14:31
Li-kai Liu (Angus)19-Oct-02 14:31 
GeneralSendInput C# example Pin
Bog19-Oct-02 8:58
Bog19-Oct-02 8:58 
GeneralRe: SendInput C# example Pin
Stephane Rodriguez.19-Oct-02 9:34
Stephane Rodriguez.19-Oct-02 9:34 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 13:29
Bog20-Oct-02 13:29 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 13:59
leppie20-Oct-02 13:59 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 14:10
Bog20-Oct-02 14:10 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 14:24
leppie20-Oct-02 14:24 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 14:51
Bog20-Oct-02 14:51 
Generalparsing HTML Pin
Jeremy Pullicino19-Oct-02 8:07
Jeremy Pullicino19-Oct-02 8:07 
GeneralRe: parsing HTML Pin
Stephane Rodriguez.19-Oct-02 9:28
Stephane Rodriguez.19-Oct-02 9:28 
GeneralRe: parsing HTML Pin
Jeremy Pullicino19-Oct-02 12:41
Jeremy Pullicino19-Oct-02 12:41 
Questionhow to release the COM server? Pin
CherezZaboro19-Oct-02 8:01
CherezZaboro19-Oct-02 8:01 
AnswerRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 9:37
Stephane Rodriguez.19-Oct-02 9:37 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 9:46
CherezZaboro19-Oct-02 9:46 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 10:33
CherezZaboro19-Oct-02 10:33 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 10:40
Stephane Rodriguez.19-Oct-02 10:40 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 10:45
CherezZaboro19-Oct-02 10:45 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 21:01
Stephane Rodriguez.19-Oct-02 21:01 
Generalcall a .Net exe from COM client Pin
Anonymous19-Oct-02 4:30
Anonymous19-Oct-02 4:30 
GeneralRe: call a .Net exe from COM client Pin
Stephane Rodriguez.19-Oct-02 5:23
Stephane Rodriguez.19-Oct-02 5:23 
GeneralRe: call a .Net exe from COM client Pin
Anonymous19-Oct-02 7:28
Anonymous19-Oct-02 7:28 
GeneralRe: call a .Net exe from COM client Pin
Stephane Rodriguez.19-Oct-02 7:34
Stephane Rodriguez.19-Oct-02 7:34 
GeneralFonts Pin
Substitute19-Oct-02 0:45
Substitute19-Oct-02 0:45 
I'm totally new to programming so don't expect me to know anything =)

I've been trying to write a simple program too list all the installed fonts in a simple list,

This I've accomplished with this code:

FontFamily[] fontFamilies;

InstalledFontCollection installedFontCollection = new InstalledFontCollection();

// Get the array of FontFamily objects.
fontFamilies = installedFontCollection.Families;
int count = fontFamilies.Length;
for(int j = 0; j < count; ++j)
{
listView1.Items.Add(fontFamilies[j].Name);
}

It adds lines to the listView1.

How would I now continue with my project and try to get the fonts to display in their own typeface, since they now are printed using the default system font.

Cheers

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.