2

I have changed the icon of my application in Visual Studio but the default icon is still shown in the Start menu. How can I change the Start menu icon?

grg
  • 5,023
  • 3
  • 34
  • 50
OnePage
  • 31
  • 1
  • 3

1 Answers1

0

Well, assuming you've just missed a part of it, here's my first suggestion:

  1. Open your Windows Forms project in Visual Studio.
  2. Open the main Form (probably Form1) in the Designer view.
  3. Open the Properties Pane and go down until you see Icon, then click the Ellipses button and select your desired icon.
  4. Go to the Project menu, click on appName Properties... (should be the last item in the menu)
  5. In the Application panel to the right and at the bottom, there is a Default Icon section. Click the Ellipses to select your desired icon.
  6. Save your changes and re-build. Then Publish the app. Does the correct "Default" icon appear in the Start Menu now?

If not:

You can write a custom shell extension to change the icon for this particular file on a file by file basis.

To do this though, you should write the extension in C++ (unmanaged code):

Refer to How to change an icon for one single file of the specific type? and this for implementation specifics.

Community
  • 1
  • 1
jay_t55
  • 11,362
  • 28
  • 103
  • 174
  • Can you please habe a look in Solution Explorer - double click the item named Resources under the Properties node. It should bring up a list of files you e added including icons. If you see a red x or red circle ontop of your icon then you need to remove the hyphen (-) from the icons filename then rename the file itself and all other references to that filename and then save and rebuild. – jay_t55 Aug 07 '14 at 10:38
  • Error: Cannot access a disposed object. Object Name:"FileCodeModel". – OnePage Aug 07 '14 at 10:41
  • @OnePage also see this question: http://stackoverflow.com/questions/9813261/changing-apps-icon-works-in-title-bar-but-not-in-taskbar-or-start-menu?rq=1 - this person seems to have had the same issue and maybe one of those answers might help you. – jay_t55 Aug 07 '14 at 10:43