Listen to menu font change?

H

Henrik

Hi,

is there a way to detect when the user changes the menu
font? In my application I need to resize it when the user
changes the menu fonts using the "Appearance" tab in the
Display properties window. I know I can read it statically
using the System.Windows.Forms.SystemInformation.MenuFont
property, but I need some way of finding out when it
changes during runtime.

Thanks,

/Henrik
 
W

Wiktor Zychla

is there a way to detect when the user changes the menu
font? In my application I need to resize it when the user
changes the menu fonts using the "Appearance" tab in the
Display properties window. I know I can read it statically
using the System.Windows.Forms.SystemInformation.MenuFont
property, but I need some way of finding out when it
changes during runtime.

did you try to hook Microsoft.Win32.SystemEvents.UserPreferenceChanged
event?
Regards, Wiktor
 
H

Henrik

Thanks a lot, that did it!

/Henrik



-----Original Message-----

did you try to hook Microsoft.Win32.SystemEvents.UserPreferenceChanged
event?
Regards, Wiktor


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top