CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 1999
    Location
    China
    Posts
    1

    How to change the icon of the shortcut using API

    Now I have created a shortcut of a .exe file using vb and Api functions. But the shortcut's icon is the same as the icon of the .exe file. I want to change the icon dynamicly using API function. How can I realize it?
    Waiting your reply!
    Thank you very much!


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to change the icon of the shortcut using API

    you somehow need to call the SetIconLocation method of the IShellLink Interface.
    I do not know of an API that is callable from VB to do that.
    You could write a small C(++) DLL.



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

Featured