Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do you give an applicatoin a custom icon? :p It was easy with VB6, but for the life of me I can't seem to figure it out with .NET. I added an icon to the start up form, but that doesn't change the .exe icon.

 

I noticed an .ico file in my solution explorer, which I assume is the icon for the .exe, unfortunately I can't figure out how to change it. :(

 

Thanks in advance. :)

Gamer extraordinaire. Programmer wannabe.
Posted

All I have done is pick the icon from the main forms properties. It then changes the icon on the top left corner of the form and the exe.

 

Steve

Posted
Weird. That's what I did, and all it shows is an icon for the form. *scratches head* I'll take another look, maybe I goofed something up.
Gamer extraordinaire. Programmer wannabe.
Posted

I just remembered.....I have had strange things happen with icons....This may be due to the custom icon being incorrect size, colour depth, but when I add icons into the imagelist, some of them wont add while some will.

 

All of the icons from windows adds in fine, but some of the ones I have made won't. I haven't looked too much into it, but it might be the problem you are having with the exe.

 

Might pay to check a standard icon and make sure yours is same size/colour depth.

 

Steve

  • *Experts*
Posted

I'm going to assume that Wyrd is trying to associate an icon with his exe also and not just only the form. In the solution explorer window in the upper right of the opened program, right click on your solution, open properities then build. Put your program icon in the application icon box. Icons that are 32 x 32 and 256 colors will work great on all MS platforms.

 

Hope that helps,

Dan

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted
I'm going to assume that Wyrd is trying to associate an icon with his exe also and not just only the form. In the solution explorer window in the upper right of the opened program, right click on your solution, open properities then build. Put your program icon in the application icon box. Icons that are 32 x 32 and 256 colors will work great on all MS platforms.

 

Hope that helps,

Dan

 

That's what I was looking for, thanks.

Gamer extraordinaire. Programmer wannabe.
Posted

Under the project's properties , not the form you can find how to set the icon for the executable, the name of the property is Application Icon in the build option

 

Regards

Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...