Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you merge an .ico file with the compiled .exe file?

Tags:

c#

icons

how do you merge an .ico file with the compiled .exe file?

without the .ico file, the exe file will crash upon booting... I've already added the ico file in the project properties

thanks in advance

like image 746
mark Avatar asked Sep 20 '10 15:09

mark


People also ask

How do I combine ICO files?

Right-click on the image and select File->Open as Layers... and select all the other icon images. This will create a single image with a layer containing each of the other icon images. Save the image as a Microsoft Windows Icon (.

How do I extract .ICO from EXE?

Now open a software folder in Explorer. Right-click the EXE file for the software you want to extract an icon from and select Properties. Click the Icons tab shown directly below. Select an icon to extract there.


2 Answers

You need add the file as part of the solution either as content or embedded resource within the properties of the .ico file in your project solution.

like image 195
Xander Avatar answered Oct 12 '22 09:10

Xander


  • Right-click your project, Add, Existing item.
  • Navigate to your .ico and select it.
  • Select the main window of your project.
  • Under properties (of the window) find icon and expand the ellipsis.
  • Click the icon you added to your project.
like image 36
caschw Avatar answered Oct 12 '22 07:10

caschw