Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set desktop icon to C# Windows Form [duplicate]

Tags:

c#

winforms

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.

like image 429
mac stac Avatar asked Jul 05 '13 13:07

mac stac


People also ask

How do I change my desktop icon format?

Right-click (or press and hold) the desktop, point to View, and then select Large icons, Medium icons, or Small icons. Tip: You can also use the scroll wheel on your mouse to resize desktop icons.

Can you change desktop app icons?

To change a shortcut's icon, right-click it and select Properties. In the menu that appears, click Shortcut near the top, then click Change Icon… near the bottom. Use the menu that pops up to find where you saved your icon and select it, then click Apply back in the Properties menu.

How do I create a custom desktop icon?

Go to menu Image > New Device Image, or right-click in the Image Editor pane and choose New Device Image. Select the type of image you want to add. You can also select Custom to create an icon whose size isn't available in the default list.


2 Answers

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

like image 179
Theraot Avatar answered Oct 23 '22 09:10

Theraot


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

like image 45
Brian Snow Avatar answered Oct 23 '22 11:10

Brian Snow