Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Icons Disapear from taskebar

Icons Disapear from taskebar

Scheduled Pinned Locked Moved C#
questioncsharphelp
15 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    udikantz
    wrote on last edited by
    #1

    Hello , I'm facing a problem , when i open 2 dialogs in my project my application icon disappear instead i get the ugly .net default icon showing there are 2 windows open , when i click on it , i can see the two different windows with the icons , my question is how can i prevent my application icon to disappear and keep it visible no matter how many open dialogs I'm viewing. thanks in advance!

    Net

    C L 2 Replies Last reply
    0
    • U udikantz

      Hello , I'm facing a problem , when i open 2 dialogs in my project my application icon disappear instead i get the ugly .net default icon showing there are 2 windows open , when i click on it , i can see the two different windows with the icons , my question is how can i prevent my application icon to disappear and keep it visible no matter how many open dialogs I'm viewing. thanks in advance!

      Net

      C Offline
      C Offline
      Cracked Down
      wrote on last edited by
      #2

      With addition to above question I am facing the same problem When we click ALTER + TAB to see/select the applications running currently it shows the same ugly icon in the list if anybody have solution please share with us!!! Thanks in advance Deep Happy Coding :)

      1 Reply Last reply
      0
      • U udikantz

        Hello , I'm facing a problem , when i open 2 dialogs in my project my application icon disappear instead i get the ugly .net default icon showing there are 2 windows open , when i click on it , i can see the two different windows with the icons , my question is how can i prevent my application icon to disappear and keep it visible no matter how many open dialogs I'm viewing. thanks in advance!

        Net

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Rightclick on the solution in the 'Solution Explorer', and choose "Properties". Go to the tab labeled "Application", and verify that you have assigned an icon to the application (not just the mainform, as the mainform.icon != app.icon)

        I are troll :)

        U C 2 Replies Last reply
        0
        • L Lost User

          Rightclick on the solution in the 'Solution Explorer', and choose "Properties". Go to the tab labeled "Application", and verify that you have assigned an icon to the application (not just the mainform, as the mainform.icon != app.icon)

          I are troll :)

          U Offline
          U Offline
          udikantz
          wrote on last edited by
          #4

          yes i got the icon set in the application tab and in the main form it still happens.

          Net

          X 1 Reply Last reply
          0
          • U udikantz

            yes i got the icon set in the application tab and in the main form it still happens.

            Net

            X Offline
            X Offline
            Xmen Real
            wrote on last edited by
            #5

            there is an Icon property of form, you have to change it for each form.

            TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

            ----------------------------------------------- 128 bit encrypted signature, crack if you can

            C 1 Reply Last reply
            0
            • L Lost User

              Rightclick on the solution in the 'Solution Explorer', and choose "Properties". Go to the tab labeled "Application", and verify that you have assigned an icon to the application (not just the mainform, as the mainform.icon != app.icon)

              I are troll :)

              C Offline
              C Offline
              Cracked Down
              wrote on last edited by
              #6

              Thanks Eddy for reply!!!!! This seems does not work......... solution provided by you works only to show the icon in the task bar but not when two form are opened or in the list appears after pressing ALTER + TAB keys In my case what you have provided is done already but still facing the same problem I thing either this is the bug in installer provided by the .net or it has to do with something with OS or with ICON size (as desktop icons are 32x32 and startup->program file,control panel->Add/remove program,taskbar icons are of 16x16) I am not sure about this what do you say??

              H L 2 Replies Last reply
              0
              • X Xmen Real

                there is an Icon property of form, you have to change it for each form.

                TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                ----------------------------------------------- 128 bit encrypted signature, crack if you can

                C Offline
                C Offline
                Cracked Down
                wrote on last edited by
                #7

                Thanks for reply Xmen!!! This also does not work i have done what yous said for each form in my application with addition to ShowInTaskBar property to true however icons disappears from task bar when two or more forms are opened in the application specifically OS creates the stack(Re-groups) if other more applications are opened, and this time the icon of the stack representing my application change to icon which we can see when we choose new icon file in the Visual studio

                X 1 Reply Last reply
                0
                • C Cracked Down

                  Thanks for reply Xmen!!! This also does not work i have done what yous said for each form in my application with addition to ShowInTaskBar property to true however icons disappears from task bar when two or more forms are opened in the application specifically OS creates the stack(Re-groups) if other more applications are opened, and this time the icon of the stack representing my application change to icon which we can see when we choose new icon file in the Visual studio

                  X Offline
                  X Offline
                  Xmen Real
                  wrote on last edited by
                  #8

                  does your icon contains 16x16 format ?

                  TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                  ----------------------------------------------- 128 bit encrypted signature, crack if you can

                  C 1 Reply Last reply
                  0
                  • X Xmen Real

                    does your icon contains 16x16 format ?

                    TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                    ----------------------------------------------- 128 bit encrypted signature, crack if you can

                    C Offline
                    C Offline
                    Cracked Down
                    wrote on last edited by
                    #9

                    absolutely!!!!!!! we can not provide 32x32 icon for form if we do so, we wont see it at the start of the title bar of the Form :)

                    X M 2 Replies Last reply
                    0
                    • C Cracked Down

                      absolutely!!!!!!! we can not provide 32x32 icon for form if we do so, we wont see it at the start of the title bar of the Form :)

                      X Offline
                      X Offline
                      Xmen Real
                      wrote on last edited by
                      #10

                      SaveTigers wrote:

                      we wont see it at the start of the title bar of the Form

                      that means its something wrong with your windows

                      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

                      ----------------------------------------------- 128 bit encrypted signature, crack if you can

                      1 Reply Last reply
                      0
                      • C Cracked Down

                        absolutely!!!!!!! we can not provide 32x32 icon for form if we do so, we wont see it at the start of the title bar of the Form :)

                        M Offline
                        M Offline
                        musefan
                        wrote on last edited by
                        #11

                        What are you creating your Icons with? As far as i know windows requires different size icons for different things. i.e. you need to create an icon that supports multiple resolutions in order for them to be displayed in all instances. Check this[^] out; its free, and always works for me :)

                        Life goes very fast. Tomorrow, today is already yesterday.

                        C 1 Reply Last reply
                        0
                        • M musefan

                          What are you creating your Icons with? As far as i know windows requires different size icons for different things. i.e. you need to create an icon that supports multiple resolutions in order for them to be displayed in all instances. Check this[^] out; its free, and always works for me :)

                          Life goes very fast. Tomorrow, today is already yesterday.

                          C Offline
                          C Offline
                          Cracked Down
                          wrote on last edited by
                          #12

                          thanks musefan!!! I was creating the icon form VS-2005 I did not used any other utility to create icon let me use this and check if it works anyways thanks for exploring with this tool Happy coding Deep :)

                          1 Reply Last reply
                          0
                          • C Cracked Down

                            Thanks Eddy for reply!!!!! This seems does not work......... solution provided by you works only to show the icon in the task bar but not when two form are opened or in the list appears after pressing ALTER + TAB keys In my case what you have provided is done already but still facing the same problem I thing either this is the bug in installer provided by the .net or it has to do with something with OS or with ICON size (as desktop icons are 32x32 and startup->program file,control panel->Add/remove program,taskbar icons are of 16x16) I am not sure about this what do you say??

                            H Offline
                            H Offline
                            Henry Minute
                            wrote on last edited by
                            #13

                            I am not sure, but I think that this could be caused by one of the Task-Bar settings. Right-Click on the Task-Bar and select Properties from the context menu. There is an option on the first page (XP) for grouping icons, try changing this setting. If it doesn't work, don't forget to reset it. I nearly always forget to do that, and then forget that I have forgotten. :) Gets awfully confusing.

                            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                            1 Reply Last reply
                            0
                            • C Cracked Down

                              Thanks Eddy for reply!!!!! This seems does not work......... solution provided by you works only to show the icon in the task bar but not when two form are opened or in the list appears after pressing ALTER + TAB keys In my case what you have provided is done already but still facing the same problem I thing either this is the bug in installer provided by the .net or it has to do with something with OS or with ICON size (as desktop icons are 32x32 and startup->program file,control panel->Add/remove program,taskbar icons are of 16x16) I am not sure about this what do you say??

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #14

                              I say that we build a little testproject to verify whether all is working as it should be (ruling out faults with device drivers and stuff) :) Can you please; * Create a new C# project - a normal executable * Download the icon from here[^] * Set the application icon to the one that you just downloaded (under projects' properties) * Modify your Program.cs file to look like this;

                              using System;
                              using System.Collections.Generic;
                              using System.Linq;
                              using System.Windows.Forms;

                              namespace WindowsFormsApplication7 (namespace is generated, don't change yours!)
                              {
                              static class Program
                              {
                              /// <summary>
                              /// The main entry point for the application.
                              /// </summary>
                              [STAThread]
                              static void Main()
                              {
                              Application.EnableVisualStyles();

                                      Form1A.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath);
                                      Form1B.Icon = Form1A.Icon;
                                      Form1A.Show();
                                      Form1B.Show();
                              
                                      while (Form1A.Visible && Form1B.Visible)
                                          Application.DoEvents();
                                  }
                                  private static Form1 Form1A = new Form1();
                                  private static Form1 Form1B = new Form1();
                              }
                              

                              }

                              This should compile into an executable that shows two icons - even when you alt-tab. Can you verify this?

                              I are troll :)

                              C 1 Reply Last reply
                              0
                              • L Lost User

                                I say that we build a little testproject to verify whether all is working as it should be (ruling out faults with device drivers and stuff) :) Can you please; * Create a new C# project - a normal executable * Download the icon from here[^] * Set the application icon to the one that you just downloaded (under projects' properties) * Modify your Program.cs file to look like this;

                                using System;
                                using System.Collections.Generic;
                                using System.Linq;
                                using System.Windows.Forms;

                                namespace WindowsFormsApplication7 (namespace is generated, don't change yours!)
                                {
                                static class Program
                                {
                                /// <summary>
                                /// The main entry point for the application.
                                /// </summary>
                                [STAThread]
                                static void Main()
                                {
                                Application.EnableVisualStyles();

                                        Form1A.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath);
                                        Form1B.Icon = Form1A.Icon;
                                        Form1A.Show();
                                        Form1B.Show();
                                
                                        while (Form1A.Visible && Form1B.Visible)
                                            Application.DoEvents();
                                    }
                                    private static Form1 Form1A = new Form1();
                                    private static Form1 Form1B = new Form1();
                                }
                                

                                }

                                This should compile into an executable that shows two icons - even when you alt-tab. Can you verify this?

                                I are troll :)

                                C Offline
                                C Offline
                                Cracked Down
                                wrote on last edited by
                                #15

                                Oh thats gr8 Eddy!!!!!!! thanks a lot It seems like ICONS created from the VS-2005 have some bug ..........this is what prooved from the above discussion........ with your code problem which i was getting (ALTER+TAB) got solved,however problem with status bar stack is still the same............

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups