Click here to Skip to main content
12,501,692 members (59,443 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0 Forms
Hi All

I want to change the icon on the task bar continuously.

Means:
In skype when u got a message the icon on the task bar changed and show digit 1 with the skype logo and when we open the skype and see the message the 1 digit is invisible .

I want to implement this in my form .

Please Help me to implement this.


Thanks in advance..
Posted 3-May-12 20:04pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

    int i= 1;
 
//in button click event
        if (i == 1){
            this.Icon = WindowsFormsApplication1.Properties.Resources.Icon1;
            i = 2}
        else
            {this.Icon = WindowsFormsApplication1.Properties.Resources.Icon2;
            i = 1;}


This way u can change the icons.
To test this code, simply create a form and add a button. In the button's click event add the provided code.
then create 2 icons in the project and run.
  Permalink  
Comments
bhagirathimfs 4-May-12 3:02am
   
One query
When 13 or 14 messages will come than i have write this if else clause for 13 to 14 times????
or any other method is there???

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160919.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100