Detect change of resolution c# WinForms

前端 未结 4 577
轮回少年
轮回少年 2020-11-30 07:18

is there an easy way to hook to an event that is triggered on change of global screen resolution?

4条回答
  •  Happy的楠姐
    2020-11-30 07:56

    There are two events - SystemEvents.DisplaySettingsChanged and SystemEvents.DisplayedSettingsChanging which you can handle. Note that both events are static and you will need to detach your handlers before exiting from your program.

提交回复
热议问题