473,573 Members | 4,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2420
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*********@ho tmail.com> wrote in message
news:P_******** ************@ne ws20.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*********@ho tmail.com> wrote in message
news:P_******** ************@ne ws20.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
3227
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 checked at the taskbar properties page. Some default windows icon are used, unles I set the application icon in my vs project file. But I would like to...
5
4320
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 services components. however, it says that I should then get an icon for ISS on the taskbar that will allow me to press 'start' so that my asp pages will...
3
3410
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 microsoft access icon. I've included the icon with the distribution and specified it as the application in the icon in the wizard, but no love from...
7
12409
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 it to show the database name. Any suggestions would be greatly appreciated. Russ --
3
6918
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 move over the icons in the taskbar the taskbar will immediately update itself and clear the old icon away. I was just wondering if this is normal...
0
1766
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 same group on the taskbar. Two problems I am running into: 1) the icon - each form's icon is correct, but when stacked in a group,
0
4036
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 Taskbar.I see none. It suggested unchecking the "Hide inactive icons" in the TaskBar Properties dialog. I followed that suggestion, but it only did by
2
5366
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 course). and this is the code: # -*- coding: iso-8859-1 -*- # Don't modify comment import wx
2
4382
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 form, the icon was displayed in the task bar. But when I set the border to None, the icon no longer displays. The taskbar button only shows the text...
0
7661
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...
0
7978
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. ...
0
8167
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...
0
8028
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...
1
5550
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...
0
5252
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3692
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...
0
3688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1263
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.