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'