C# Windows Forms: Set form Visibility Based on Focus enabled of external window
- by zion
I would like to create a Windows Forms application that when run is only visible once another external window (notepad.exe) is enabled/focused. Any hints, I don't know where to begin.
If my form is running I would like it to popup when Notepad is enabled and disappear when Notepad loses focus.