10

I have debugged C# WinForm exe. Copied it to desktop and want to distribute it to other people. How do I set an .ico for this exe, so that the desktop icon automatically appears on the computer, which downloads it too, without they don't adjust anything.

mac stac
  • 245
  • 2
  • 4
  • 11
  • check out this: http://stackoverflow.com/questions/4284497/changing-the-default-icon-in-winform-application – Shai Aharoni Jul 05 '13 at 13:23
  • Are you talking about setting the icon or actually distributing it to people's computers? Seems like maybe you're talking about the latter, but it's not clear. – Tim Jul 05 '13 at 13:23
  • Are you using Visual Studio? The icon is set in the properties of the project in Visual Studio, but if you are not using Visual Studio that's anothet thing. – Theraot Jul 05 '13 at 13:26

3 Answers3

34

In Visual Studio go to the properties of the Project:

enter image description here

And then go to the Appligation tab, and select the icon in the resources options:

enter image description here

By clicking on the button at the right you can open an open dialog to choose your icon:

enter image description here


In Xamarin Studio right click the project to select Options:

enter image description here

Then go to the General Tab:

enter image description here

By clicking on browse button you can open an open dialog to choose your icon:

enter image description here

Theraot
  • 31,890
  • 5
  • 57
  • 86
  • Brian already explained. Thanks for detailed answer anyway. – mac stac Jul 05 '13 at 13:36
  • @macstac I extended the answer to cover Xamarin Studio as it was my intention originally since you didn't say if it was Visual Studio what you was using. – Theraot Jul 05 '13 at 13:43
  • I am using Visual Studio. I'm sure Xamarin Studio users would benefit from the explanations as well. I picked your answer as best answer because it is very detailed. – mac stac Jul 05 '13 at 13:44
5

To specify an application icon (in VS2012):

  1. In Solution Explorer, choose a project node (not the Solution node).

  2. On the menu bar, choose Project, Properties.

  3. When the Project Designer appears, choose the Application tab.

  4. In the Icon list, choose an icon (.ico) file.

From MSDN

Community
  • 1
  • 1
Brian Snow
  • 1,133
  • 1
  • 12
  • 23
3

Set the Icon dropdown in Project Properties.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
  • you didn't get the question well. please delete this. I want to change desktop icon not the title icon – mac stac Jul 05 '13 at 13:31
  • 1
    @macstac: Yes. That's exactly what the dropdown in project properties (as opposed to the form) does – SLaks Jul 05 '13 at 14:17