Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys!
I need to add my icon of my exe file, into MyProject.vbproj

Attention: I don't need to add my exe icon from properties window.

Anybody can help me and let me know the code of XML to add icon to exe file?

Thanks.
Posted
Comments
DamithSL 23-Apr-14 3:54am    
try to replace icon file in your project folder with new one with same name. rebuild and check :-)

if you are using a setup project you can add icon from setup property options and also in click once this option available. you can find it from the publish / resource menu on the click once setup.



http://stackoverflow.com/questions/9014337/setting-correct-icon-for-shortcut-in-vs2010-setup-project[^]


this link may helpful to you.
 
Share this answer
 
The uniform way from a windows form to get an icon, if that is indeed what you're aiming at is:
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

Now you do not have to get that icon object from a resource file of cause.

Not sure if this is what you ask, what type of application is it in your project?

the notation in vb.net is something like Me.Icon = cast(resource.getobject(...) as Icon) if i remember correctly but you can find a ton of language online translations more able ;)
 
Share this answer
 
Thanks but none of above are my answer.
Please read what I asked.
I need to change it in MyProject.vbprj which is in XML format.
Help me please!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900