Z
Z
zheleznyak_oleg2012-04-28 13:22:48
.NET
zheleznyak_oleg, 2012-04-28 13:22:48

How to catch screen resolution change event?

I am writing a remote control program in C#. I thought about the fact that during operation the server can change the screen resolution. How to catch this event so that the server can send a new permission to the client?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SergeiStartsev, 2012-04-28
@SergeiStartsev

Control.Resize Event

S
switlle, 2012-04-28
@switlle

You can subscribe to events:
SystemEvents.DisplayedSettingsChanging
SystemEvents.DisplaySettingsChanged
msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.displaysettingschanged.aspx
Don't forget to unsubscribe when the program ends

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question