System Tray C# App Recieve Keystroke

E

ericlangland

Hi,
I have a small managed code application (windows forms) that executes
on startup and immidiatly minimizes to the system tray. It launches
and shows the form when I double click it's small icon in the system
tray. So far so good.

I'd like for the app to maximize outside of the system tray when the
Windows + ? combination keys are selected. It seems that I can catch
keystrokes when the form is showing but when minimized(Hide()) it in
the system tray it can't recieve these events.

Any ideas on how to allow my app to recieve this key press event when
minimized?

Any help is much appreciated.

Thanks,

Eric
 
S

Steve

Hi,
I have a small managed code application (windows forms) that executes
on startup and immidiatly minimizes to the system tray. It launches
and shows the form when I double click it's small icon in the system
tray. So far so good.

I'd like for the app to maximize outside of the system tray when the
Windows + ? combination keys are selected. It seems that I can catch
keystrokes when the form is showing but when minimized(Hide()) it in
the system tray it can't recieve these events.

Any ideas on how to allow my app to recieve this key press event when
minimized?

I do something similar with one of my applications. Take a look at
this example of a system-wide hotkey at CodeProject:
http://www.codeproject.com/cs/miscctrl/systemhotkey.asp?df=100&forumid=12637&exp=0&select=663478

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top