VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Extract an icon from any file you wish, including the root of a drive or a folder

Jon Barker  (11 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

You can use this code to get the icon from any file on your hard disk.... Simply call the function with a filename; 'c:\testfile.exe', an imagelist to add the icon to; 'imagelist1', a picturebox for buffer purposes; 'picturebox1' and the size of the image you wish to extract, either 16, or 32 pixels. This code returns the index of the icon that has been added to the imagelist.
tHe_cLeanER

Rate Extract an icon from any file you wish, including the root of a drive or a folder (17(17 Vote))

Download Extract an icon from any file you wish, including the root of a drive or a folder

Extract an icon from any file you wish, including the root of a drive or a folder Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters