System Font

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I get the System Font that is used in message boxes, etc. so I can set
in code my control to use the same font? Thanks for any help.
 
I made a guess and tried this before but I get an error saying that
SystemFonts is not defined. What Import and references do I have to have in
order to use this. I also can't seem to find SystemFonts Class in the help
files.
 
Dennis said:
How do I get the System Font that is used in message boxes, etc. so I can
set
in code my control to use the same font?

..NET 1.0/1.1 do not provide a managed way to determine this font. You may
want to use the "Microsoft Shell Dlg"/"Microsoft Sans Serif" or Tahoma fonts
instead which are used by most Windows applications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top