|
-
Jul 29th, 2006, 07:26 AM
#1
Thread Starter
Fanatic Member
[Resolved] Retrieving Icon From Program via Shell
Is it possible to retirieve the icon from a program using the shell function?
I don't know if i'm asking this qusetion correctly so i'll show you some code...
CreateEntryToSystemPanel "{9d6D8ED6-116D-4D4E-B1C2-87098DB509BA}", "My Program", "My Program Tooltip", "C:\MyProgram.exe,0", "C:\MyProgram.exe -options"
The bold bit is where the icon path should go.
I saw that someone was using the ,0 as at the end of the program path and i assumed that that would extract the icon. However it's not working. It works fine if i use a *.ico file, but i want this program to only have 1 file, so i was wondering if it's possible to put the icon there! There is an icon now, but it's the Visual Basic default icon and not my program's icon (in project propeties).
Thanks for your time.
*** EDIT:
Don't worry, it started working now, i don't know how it fixed it self. The way i posted above works fine.
Last edited by Slyke; Jul 29th, 2006 at 09:19 AM.
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
|