Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Program Icon from exe

Status
Not open for further replies.

MichaelaLee

Programmer
May 3, 2004
71
US
Hi Everyone,
I would like to know how to get the Program Icon from an exe. My manager asked me to build a little app that will launch other apps like Notepad along with other apps. What I want to do is assign the program Icon to the Picture property of a command button. Thanks for any info that you can provide.
Michael
 
Make sure to sets the command buttons style to graphical or it will not work. Here is how you would call the function:

Command1.Picture = GetIconFromFile("C:\SCF Counts.exe", 0, True)

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top