|
-
Mar 8th, 2000, 10:54 AM
#1
Thread Starter
Fanatic Member
Is it possible to change a Desktop Shortcut's icon through VB? Maybe through API? If so, how.
Thanks.
-
Mar 8th, 2000, 11:59 AM
#2
Addicted Member
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!!!
-
Mar 8th, 2000, 12:10 PM
#3
Thread Starter
Fanatic Member
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.
-
Mar 9th, 2000, 01:50 AM
#4
Thread Starter
Fanatic Member
Waiting....
Any suggestions anyone?
Thanks.
-
Mar 9th, 2000, 02:23 AM
#5
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
-
Mar 9th, 2000, 04:05 AM
#6
Thread Starter
Fanatic Member
Frans C,
Thanks for your reply. I looked briefly at the info. and it looks promising.
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|