By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,837 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,837 IT Pros & Developers. It's quick & easy.

System Tray C# App Recieve Keystroke

P: n/a
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

Mar 12 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mar 12, 2:58 am, ericlangl...@msn.com wrote:
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/miscct...&select=663478

Steve

Mar 12 '07 #2

P: n/a
On Mar 12, 7:52 am, "Steve" <madro...@gmail.comwrote:
On Mar 12, 2:58 am, ericlangl...@msn.com wrote:
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/miscct...?df=100&forumi...

Steve
This is EXACTLY what I was looking for. Many thanks.

Cheers

/Eric

Mar 12 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.