473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

System Tray C# App Recieve Keystroke

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
2 3886
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: balu | last post by:
Hello , I Had a problem in developing a application for getting a message over or above system tray . When we first logon into the yahoo messenger , whenever a new user logon ,The messenger...
3
by: Nicolas Poirier | last post by:
I successfully made a system tray application. When I do shut down the computer, how does the computer can instruct my application to shut down? For the moment, if I don't quit my application,...
4
by: Tom | last post by:
Hello, System tray icon informs users that the apps is running in the background. However, there are instances that the app might crash and after that the app icon in the system tray is still...
10
by: Crouchie1998 | last post by:
Hello To All You Real Programmers Out There!! There is an application called: "Tray It" Webpage: ---------- http://www.teamcti.com/trayit/trayit.htm Direct Download:
5
by: scottt | last post by:
I asked a question along a similar line about a week ago and didn't get any replies. Let me try to ask the quetion again a little bit different to see if I can get some help on this problem. Is...
11
by: Jay | last post by:
Hey There, I have a system tray application that is running, and it needs to communicate with a Windows Service that I wrote. My problem is that if a user switches to another desktop, I need the...
3
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory...
3
by: Usman Jamil | last post by:
Hi I've a windows application that does a lengthy backup process. While the process is going on, I need to show a progress bar inside system tray or just above the system tray. Can someone...
22
by: rottmanj | last post by:
I am working on an app that I need to minimize/close to the system tray. More or less I have the minimize to the system tray working, save caveat. When it is minimized the application still...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.