473,395 Members | 1,613 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,395 software developers and data experts.

System Font

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
Nov 21 '05 #1
4 1822
Hi,

Dim fnt As Font = SystemFonts.DialogFont

Ken

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

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.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
Nov 21 '05 #2
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
"Ken Tucker [MVP]" wrote:
Hi,

Dim fnt As Font = SystemFonts.DialogFont

Ken

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

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.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

Nov 21 '05 #3
Hi,

Sorry systemfonts is new to vb.net 2005.

Ken
----------------
"Dennis" <De****@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.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
"Ken Tucker [MVP]" wrote:
Hi,

Dim fnt As Font = SystemFonts.DialogFont

Ken

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

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.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

Nov 21 '05 #4
"Dennis" <De****@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/>

Nov 21 '05 #5

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

Similar topics

3
by: Barry Anderberg | last post by:
I'm using the .NET Memory Profiler by Sci Tech and I wrote a little test application to verify something odd I observed and it appears that System.Drawing.Font fails to dispose of its FontFamily. ...
1
by: | last post by:
Hello, I am learning how to use the XmlSerializer. I have a class that has a member of type System.Drawing.Font such as: public class MyClass { Font font;
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
3
by: Luis Esteban Valencia | last post by:
A page let of work for me I commented almost all lines but nothing the code is this
2
by: Ben | last post by:
I have several pages written in aspx, but sometime the aspx page return the following error. And it hapeen, the whole web application gives this error, that means all the aspx files get affected....
2
by: Kyjan | last post by:
Greetings to all! I was wondering if anyone had ever seen this error before: Exception message: Invalid parameter used. (source='System.Drawing', method='GetHeight') Portion of the stack...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
4
by: Joseph Gruber | last post by:
Is there any way to use the 'System' Font for a label?
2
by: teo | last post by:
hallo, for a pop-up menu (it's a 'ContextMenuStrip' control) I 'd like to set the current System font Currently the ContextMenuStrip has the MS San Sarif font and the 8,25 size but I'd like...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.