wyrd Posted June 5, 2003 Posted June 5, 2003 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. :) Quote Gamer extraordinaire. Programmer wannabe.
sjn78 Posted June 5, 2003 Posted June 5, 2003 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 Quote
wyrd Posted June 5, 2003 Author Posted June 5, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
sjn78 Posted June 5, 2003 Posted June 5, 2003 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 Quote
*Experts* DiverDan Posted June 5, 2003 *Experts* Posted June 5, 2003 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 Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
hog Posted June 5, 2003 Posted June 5, 2003 don't you also have to add the icon to the setup gumpf when deploying? Quote My website
*Gurus* divil Posted June 5, 2003 *Gurus* Posted June 5, 2003 No, the icon gets compiled in to the exe file. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
wyrd Posted June 5, 2003 Author Posted June 5, 2003 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. Quote Gamer extraordinaire. Programmer wannabe.
iebidan Posted June 5, 2003 Posted June 5, 2003 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 Quote Fat kids are harder to kidnap
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.