Listen to menu font change?

  • Thread starter Thread starter Henrik
  • Start date Start date
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
 
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
 
Back
Top