|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
System FontHow 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 Hi,
Dim fnt As Font = SystemFonts.DialogFont Ken --------------------- "Dennis" <Den***@discussions.microsoft.com> wrote in message How do I get the System Font that is used in message boxes, etc. so I can news:C9B91769-5F7F-4411-819C-5C0055C054EA@microsoft.com... set in code my control to use the same font? Thanks for any help. -- Dennis in Houston 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. -- Show quoteHide quoteDennis in Houston "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 > > > Hi,
Sorry systemfonts is new to vb.net 2005. Ken ---------------- "Dennis" <Den***@discussions.microsoft.com> wrote in message I made a guess and tried this before but I get an error saying thatnews:D66F701F-77D7-4785-A513-C4D169A385A0@microsoft.com... 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. -- Show quoteHide quoteDennis in Houston "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 > > > "Dennis" <Den***@discussions.microsoft.com> schrieb: ..NET 1.0/1.1 do not provide a managed way to determine this font. You may > 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? 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/>
Accessing dlls at runtime
C# to VB crossover questions hide control based on SQLS2K column level permission Update Element in ArrayList Structure Add record to Access Databases Large fonts setting (120DPI) GetType and ApplicationClass About MessageQueue Problem Using JPG stills to make a "Video" file Public vs Shared |
|||||||||||||||||||||||