Results 1 to 6 of 6

Thread: Illusive Icons

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Post

    Is it possible to change a Desktop Shortcut's icon through VB? Maybe through API? If so, how.

    Thanks.

  2. #2
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241

    Post


    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!!!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Post

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Post Waiting....

    Any suggestions anyone?

    Thanks.

  5. #5
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    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

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Post

    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
  •  



Click Here to Expand Forum to Full Width