R
Robert Misiak
I have an application which runs in the background and displays a
NotifyIcon - Form's are opened depending on user input, but the main class
is not a Form. I use RegisterHotKey() to catch Alt+F11, but since I've
started doing this I've had to inherit my main class from
System.Windows.Forms.Control, so I could override WndProc to check for
WM_HOTKEY. While this works, I'm convinced that there must be a better way
to do this. Does anyone know of a better way?
Thanks,
Robert
NotifyIcon - Form's are opened depending on user input, but the main class
is not a Form. I use RegisterHotKey() to catch Alt+F11, but since I've
started doing this I've had to inherit my main class from
System.Windows.Forms.Control, so I could override WndProc to check for
WM_HOTKEY. While this works, I'm convinced that there must be a better way
to do this. Does anyone know of a better way?
Thanks,
Robert