How do I link a vb.NET program to an icon? (not the shortcut)
Printable View
How do I link a vb.NET program to an icon? (not the shortcut)
I have a program I have written in vb.NET and I have an icon in the form XXX.ico I want the icon to appear on the desktop so that when you click it it will open the program.exe
I know how to use the "change icon" function to give a shortcut icon, but I don't know how to link a standard icon directly to my program without it being labelled "Shortcut to program.exe".
If you set the Application Icon, the xxx.ico is used even if you right click on the app and create desktop icon. Right click on the Project->Properties->Build (tree node), browse for your xxx.ico
or compile it with /win32icon:path/icon.ico switch
Or am I missing something here?
Thanks for the replies Kulrom and Nebulom. I have an exe program I have put on a cd and wish to give it to someone. When I put the program on the disk I didn't know how to link my icon to it so I ended up with the standard windows icon - a white rectangle with a blue top.
So when the person I give this program to transfers it from the cd onto his computer, the icon that transfers is just the standard windows icon with a white rectangle with a blue top. Yet I have this other icon which I would like the program to have, but I don't know how to do it.
Thanks for the suggestion Nebulom.... I will try that now.
you know when it says "shortcut to myprogram.exe" you can simply edit that text to say whatever you want
also if you are giving this program to someone else, you may want to create an installer package for it, unless you are certain you included everything you need on the CD and they already have the .net framework
Many thanks Nebulom - that was it! Great. Thanks also Kulrom.
:wave:
Thanks Kleinma. I will follow up your suggestion of an installer package.