Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a created a demo application, and woluld like to run always like antivirus, micromax datacard software, or any pther notification software..


My Main objetive is
when i close an application then my application may close, but it should run and display in notification area icon like gtalk, skypee, etc.

and when it will click then the application window will open and display it in task bar.

how to do it please describe it with code and examples
Posted
Comments
db7uk 26-May-12 9:48am    
Is this an ASP.NET application? If so, you can't with a normal website. You would need to create an client application or browser addin.

C#
string IconPath = @"C:\Users\Zaid\Desktop\Icon.ico";

            Icon icon = new Icon(IconPath);

            NotifyIcon notifyIcon = new NotifyIcon();

            notifyIcon.BalloonTipText = "Text";

            notifyIcon.Icon = icon;
 
Share this answer
 
Hey You can use option like Minimize window and go to system tray.
In this case you application is partially close(i.e. not visible in task bar)

And for notification you can restore it..

For Minimize and system tray reference links---

1. Minimize Form in System Tray

2. Minimize any window to system tray using Windows Hook[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900