Is it possible to change a Desktop Shortcut's icon through VB? Maybe through API? If so, how.
Thanks.
Printable View
Is it possible to change a Desktop Shortcut's icon through VB? Maybe through API? If so, how.
Thanks.
Is this an icon you want your vb program to display or a program that will change the icons of any program? Because if it is to associate an icon with your exe in vb do this: go to file -- make exe -- options -- group box: "Application" will have two text boxes "title" and "icon" insert the correct title of your program and the icon you want associated with it in these boxes. Browse for the icon or put in the correct path and name of the icon. Click Ok and that icon will be associated with your program permanently. I hoped that helped a little!!!Quote:
Is it possible to change a Desktop Shortcut's icon through VB? Maybe through API? If so, how.
Thanks.
Bebe.
Thanks for the response. I am not looking to associate an Icon with my VB exe. What I would like to do is change a desktop shortcut's icon thru VB.
For example, if you right-click on a shortcut on the Windows desktop, choose properties from the menu, and select the Shortcut Tab, there is a button "Change Icon..." that allows you to associate a different Icon with the Shortcut. I just want to do this in VB.
Any ideas? Is this shortcut stored in the Registry somewhere?
Thanks.
Any suggestions anyone?
Thanks.
Maybe this site will help you further. It has a sample program to create ShellLinks, so I suppose you can alter it a bit to modify one.
http://www.thescarms.com/VBasic/ShellLnk.htm
Frans C,
Thanks for your reply. I looked briefly at the info. and it looks promising.
Thanks again.