473,396 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

icon problem in taskbar

Dear my friends,

I have been helped by many C# gurus here, thank you very much.
My small application can help you fetch some good pictures from Internet.
You can get it from
http://members.rogers.com/5725brian/...tImages1.0.zip. No
virus guarantee, nothing will harm your computer, trust me. Have fun to use
it.
But I still have some simple questions. When I run this program, it will
display a icon on taskbar. But this icon won't disappear itself even the
program has already exited if you won't use mouse to over it. How to fix
this problem?
And, if I want to keep this icon staying at taskbar when the program is
running, like yahoo messenger, how to do?
Thanks again.

Brian

Nov 16 '05 #1
2 2413
Brian,

You need to explicitly clean up your system tray icon on a close event (or
Exit from a menu or something) of your application. If your application is a
single dialog form, catch the Close event and clean up your tray icon. To
keep the app running when a user clicks close, you need to catch the Close
event and tell it to cancel the close and hide your form. This will keep
your application running, your icon in the system tray, and no taskbar
button.

Goodluck!

Adam

"Brian" <Br*********@hotmail.com> wrote in message
news:P_********************@news20.bellglobal.com. ..
Dear my friends,

I have been helped by many C# gurus here, thank you very much.
My small application can help you fetch some good pictures from Internet.
You can get it from
http://members.rogers.com/5725brian/...tImages1.0.zip. No
virus guarantee, nothing will harm your computer, trust me. Have fun to
use
it.
But I still have some simple questions. When I run this program, it will
display a icon on taskbar. But this icon won't disappear itself even the
program has already exited if you won't use mouse to over it. How to fix
this problem?
And, if I want to keep this icon staying at taskbar when the program is
running, like yahoo messenger, how to do?
Thanks again.

Brian

Nov 16 '05 #2
To get rid of the icon when the app closes, catch the form's Close event.
In the event handler, call "this.Dispose();".

Cletus

"Brian" <Br*********@hotmail.com> wrote in message
news:P_********************@news20.bellglobal.com. ..
Dear my friends,

I have been helped by many C# gurus here, thank you very much.
My small application can help you fetch some good pictures from Internet.
You can get it from
http://members.rogers.com/5725brian/...tImages1.0.zip. No
virus guarantee, nothing will harm your computer, trust me. Have fun to
use
it.
But I still have some simple questions. When I run this program, it will
display a icon on taskbar. But this icon won't disappear itself even the
program has already exited if you won't use mouse to over it. How to fix
this problem?
And, if I want to keep this icon staying at taskbar when the program is
running, like yahoo messenger, how to do?
Thanks again.

Brian

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Morten Bendsen | last post by:
Is it possible to set the icon and title for a group of buttons on the taskbar? The group appears when several applicationwindows are opened, and when "Group similar taskbar buttons" are...
5
by: Dave | last post by:
Hi I am trying to set my windows xp pro system up so that i can write and test ..asp pages.I have followed the instructions given by www.w3schools.com to install the internet information...
3
by: Sam | last post by:
I've been googling for a couple of hours now and tried some different things, but I've been unable to get the icon for a distributed access application to do anything but display the default...
7
by: Russ via AccessMonster.com | last post by:
Can someone tell me how to change the icon in the windows task bar? I already figured out how to do it in the forms, and shortcuts but the windows task bar still says Microsoft Access, I only want...
3
by: jm | last post by:
Hi, I have a C# program that changes the notifyIcon during the program. What I have noticed is that sometimes when the program is over the old icon will still be in the system tray. But when i...
0
by: Jean Bredeche | last post by:
Hi: My application creates multiple forms, all of which appear in the taskbar. Because I have my Windows XP configured to "Group similar taskbar buttons", the multiple forms get put into the...
0
by: Richard | last post by:
Hi All, I'm running MySQL 5.0.15-nt over WinXP-Pro/SP2. I just got "My Definitive Guide to MySQL 5", which I find very helpful. It suggests that there should be a "MySQL" icon in the...
2
by: flaper87 | last post by:
Hi everybody!!!! I am developing an aplication, and i want it to stay on the system tray, i found out how to put the icon, but i can minimize it there, What do i have to do?, I'm using python(of...
2
by: plevintampabay | last post by:
I have a borderless form in C#. The form has an icon specified in its properties and I also have the same icon specified for the project in the project properties. When I had a border on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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,...

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.