Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21863

How do I load an EXE or DLL file icon?

$
0
0
I noticed in the registry when an icon stored as a resource is referred to, it has the file, a comma, and then the resource number like this:

"C:\Program Files\VideoLAN\VLC\vlc.exe",0


So I tried this to load that exe file's icon as a picture.
Code:

Form1.Picture = LoadPicture("""C:\Program Files\VideoLAN\VLC\vlc.exe"",0")
But it didn't work. It gives me a "path/file access" error. WHY?

Viewing all articles
Browse latest Browse all 21863

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>