Click here to Skip to main content
11,714,776 members (77,544 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0 Forms WinForm
Hi All

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

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
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}
            {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.
bhagirathimfs at 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
0 Sergey Alexandrovich Kryukov 550
1 Richard MacCutchan 275
2 Maciej Los 274
3 ManasKumarM 155
4 CHill60 135
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260

Advertise | Privacy | Mobile
Web03 | 2.8.150819.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2015
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