Home All Groups Group Topic Archive Search About
Author
26 Jun 2005 8:19 PM
Dennis
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.
--
Dennis in Houston

Author
26 Jun 2005 10:35 PM
Ken Tucker [MVP]
Hi,

Dim fnt As Font = SystemFonts.DialogFont



Ken

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

"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:C9B91769-5F7F-4411-819C-5C0055C054EA@microsoft.com...
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.
--
Dennis in Houston
Author
26 Jun 2005 10:48 PM
Dennis
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 in Houston


Show quoteHide quote
"Ken Tucker [MVP]" wrote:

> Hi,
>
> Dim fnt As Font = SystemFonts.DialogFont
>
>
>
> Ken
>
> ---------------------
>
> "Dennis" <Den***@discussions.microsoft.com> wrote in message
> news:C9B91769-5F7F-4411-819C-5C0055C054EA@microsoft.com...
> 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.
> --
> Dennis in Houston
>
>
>
Author
27 Jun 2005 1:28 AM
Ken Tucker [MVP]
Hi,

        Sorry systemfonts is new to vb.net 2005.

Ken
----------------
"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:D66F701F-77D7-4785-A513-C4D169A385A0@microsoft.com...
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 in Houston


Show quoteHide quote
"Ken Tucker [MVP]" wrote:

> Hi,
>
> Dim fnt As Font = SystemFonts.DialogFont
>
>
>
> Ken
>
> ---------------------
>
> "Dennis" <Den***@discussions.microsoft.com> wrote in message
> news:C9B91769-5F7F-4411-819C-5C0055C054EA@microsoft.com...
> 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.
> --
> Dennis in Houston
>
>
>
Author
27 Jun 2005 8:12 AM
Herfried K. Wagner [MVP]
"Dennis" <Den***@discussions.microsoft.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>