Minimize .NET window event (C #)

Hey, I'm really stuck with my project here ... I need to know when any open window has been minimized / restored and handle the event in my own application. Any ideas?

Edit: Musigenesis is right, I want to know when OTHER applications are minimized / restored

+3
source share
2 answers

I think you will need to use the SetWindowsHookEx Win32 API function (along with several others). Basically, you will iterate over all open windows in the OS and connect to their resize events.

: , ? , , , , Windows.

: , " " Windows , , , SendMessage, , ( ).

2: , , ( 100% , ). , , ( , , ).

+5

, Windows Forms, OnSizeChanged WindowState

+2

Source: https://habr.com/ru/post/1716982/


All Articles