473,804 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
+ 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 3927
On Mar 12, 2:58 am, ericlangl...@ms n.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...@ms n.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
482
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 will shows message above the system tray. for example " balu comes is on online " above system tray . whenever a new user logout ,The messenger will shows message above the
3
6627
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, system asks to kill an unresponsive task before shut sown. How does I make shut down run more correctly? Thank you Nicolas Poirier
4
5665
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 displayed. It goes away when the mouse is pointed over the icon. I wonder if there is any way to force system tray refresh during the VB.NET app crash? I tried to add some code in the finalize but it didn't do anything. I think
10
3145
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
6145
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 there a way (API function) from one program to restore another application that is running in the system tray? Specifically I need to send a double mouse click to the application to get it to restore from the system tray. Thanks.
11
1990
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 service to have communication be able to distinguish that data needs to be sent to app A instead of app B. I was going to try to use a desktop handle to distinguish between the two, but I can't create the service as an interactive service (nor...
3
7945
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 but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
3
3325
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 please guide me how to show the progress bar out of the boundaries of the application form area and near the system tray. Regards Usman
22
17681
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 appears in the task bar. Is there a way to remove the application from the task bar? Here is my current code for minimize. private void Form1_Resize(object sender, System.EventArgs e) { if (FormWindowState.Minimized ==...
0
9594
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10350
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5534
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
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 we have to send another system
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.