473,806 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to add an item in the system tray?

I want to add an item to the system tray when my application is minimized.
How to do this? Can anyone give me some reference or idea? Thanks a lot!
Nov 17 '05 #1
4 2067
On Tue, 12 Apr 2005 01:08:21 +0800, ywchan wrote:
I want to add an item to the system tray when my application is minimized.
How to do this? Can anyone give me some reference or idea? Thanks a lot!


http://www.codeproject.com/csharp/trayiconmenu01.asp
http://www.codeproject.com/csharp/sy...notifyicon.asp

and other articles on www.codeproject.com

--
Claudio Grazioli
http://www.grazioli.ch
Nov 17 '05 #2
Hi,

Try NotyIcon component, here is an example:

// You should replace the bold icon in the sample below
// with an icon of your own choosing.
notifyIcon1.Ico n =
new System.Drawing. Icon (System.Environ ment.GetFolderP ath
(System.Environ ment.SpecialFol der.Personal)
+ @"\Icon.ico" );
notifyIcon1.Vis ible = true;
notifyIcon1.Tex t = "Antivirus program";

"ywchan" wrote:
I want to add an item to the system tray when my application is minimized.
How to do this? Can anyone give me some reference or idea? Thanks a lot!

Nov 17 '05 #3
thanks!

"Salvador" <Sa******@discu ssions.microsof t.com> wrote in message
news:E2******** *************** ***********@mic rosoft.com...
Hi,

Try NotyIcon component, here is an example:

// You should replace the bold icon in the sample below
// with an icon of your own choosing.
notifyIcon1.Ico n =
new System.Drawing. Icon (System.Environ ment.GetFolderP ath
(System.Environ ment.SpecialFol der.Personal)
+ @"\Icon.ico" );
notifyIcon1.Vis ible = true;
notifyIcon1.Tex t = "Antivirus program";

"ywchan" wrote:
I want to add an item to the system tray when my application is minimized. How to do this? Can anyone give me some reference or idea? Thanks a lot!

Nov 17 '05 #4
thanks a lot!

"Claudio Grazioli" <ne********@g mx-ist-cool.de> wrote in message
news:1a******** *************** ********@40tude .net...
On Tue, 12 Apr 2005 01:08:21 +0800, ywchan wrote:
I want to add an item to the system tray when my application is minimized. How to do this? Can anyone give me some reference or idea? Thanks a lot!


http://www.codeproject.com/csharp/trayiconmenu01.asp
http://www.codeproject.com/csharp/sy...notifyicon.asp

and other articles on www.codeproject.com

--
Claudio Grazioli
http://www.grazioli.ch

Nov 17 '05 #5

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
6628
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
0
1535
by: Derrick | last post by:
Hello all; I seem to have encountered a strange problem. I have a context menu attached to a system tray icon (NotifyIcon) of a Windows App. Based on user actions, I want to change the text of one of the menu items. Sounds easy enough. When I step through in the debugger, the .Text property of the menu item has changed correctly (even at later points in the code), but when I right-click on the tray icon it still shows the old value...
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
5
6146
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.
2
3928
by: ericlangland | last post by:
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...
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
9597
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
10620
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...
1
10372
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,...
0
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
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
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
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
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
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.