mark
mark

Reputation: 61

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

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

Upvotes: 6

Views: 1362

Answers (3)

caschw
caschw

Reputation: 566

  • 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.

Upvotes: 1

Øyvind Bråthen
Øyvind Bråthen

Reputation: 60724

If they are already added to project properties, you can access them using the code.

Properties.Resources.<name of icon resource>

I hope this is accurate, as I'm writing this on my phone :)

Upvotes: 0

Xander
Xander

Reputation: 1133

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.

Upvotes: 5

Related Questions