Detect change of resolution c# WinForms

前端 未结 4 594
轮回少年
轮回少年 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条回答
  •  不知归路
    2020-11-30 08:00

    Handle the following event:

    Microsoft.Win32.SystemEvents.DisplaySettingsChanged
    

    You may refer to this page for more details.

    You may also wanna see the msdn article on SystemEvents class.

提交回复
热议问题