Click here to Skip to main content
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 725
1 OriginalGriff 385
2 CPallini 240
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,198
2 CPallini 4,740
3 George Jonsson 3,167
4 Gihan Liyanage 2,470

Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2014
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