473,466 Members | 1,332 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[PopUp menu] setting the current System Font

teo
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 it to assume the current System font
(that obviously it isn't MS San Sarif) and the current System font Size

note:
if it was a color I know that we have the so called "KnownColor" group
that represent the current System color, but for the font?

Aug 10 '07 #1
2 1730
On Aug 9, 8:16 pm, teo <t...@libero.itwrote:
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 it to assume the current System font
(that obviously it isn't MS San Sarif) and the current System font Size

note:
if it was a color I know that we have the so called "KnownColor" group
that represent the current System color, but for the font?
If I'm not mistaken, doesn't .Net 2.0 have a SystemFonts class?

Thanks,

Seth Rowe

Aug 10 '07 #2
teo
On Fri, 10 Aug 2007 04:00:57 -0700, rowe_newsgroups <ro********@yahoo.com>
wrote:
>On Aug 9, 8:16 pm, teo <t...@libero.itwrote:
>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 it to assume the current System font
(that obviously it isn't MS San Sarif) and the current System font Size

note:
if it was a color I know that we have the so called "KnownColor" group
that represent the current System color, but for the font?

If I'm not mistaken, doesn't .Net 2.0 have a SystemFonts class?
Good, but...
because I have a Theme (and many users have) it doesn't work, indeed.

I tried with a testing Theme, all with 'Comic Sans' font
(Active bar, Inactive bar, 3D object, Messages, Menu, Icons...)

then I used this:

Dim myFont As New Font(SystemFonts.MenuFont.FontFamily.Name,
SystemFonts.MenuFont.Size)
ContextMenuStrip1.Font = myFont

and unfortunately ContextMenuStrip1 nevere appeared with the 'Comic Sans'
Aug 10 '07 #3

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

Similar topics

2
by: maxrawson | last post by:
Greetings all: I have an asp.net application that is coded mainly in vb.net. I have successfully cut and pasted some javascript into my application that mimicks the datetime picker control in...
2
by: Stuart Norris | last post by:
Dear Group, I am new to c# and windows form designer - coming from a Motif background. I am attempting to develop an application for a touch screen and I need to have a menu system with a...
1
by: Henry | last post by:
I was trying to work through the Lab 2 exercises in the Microsoft's Windows-Based Applications in Visual C#. While I am not showing any errors I am also not seeing the mainMenu object when I run...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
0
by: GV | last post by:
Hi all, New to developing in VS 2005 ASP 2.0 Trying to have a easy pop calender for a button on a web page. I keep getting a error message in IE6 that says: Line 69 Char 3 Error:...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.