|
-
Jan 8th, 2000, 01:32 PM
#1
Thread Starter
New Member
Hi
I read one tip in vb-world about extract icon from exe or dll file. I did it successfully. The problem is, I try to put that Picture object in ImageList for use with ListView but it give me an error "Out of Memory"!!!!!
Anyone know how to get to icon from exe file an put it in listview, Please help.
Thanks in advance
-
Jan 8th, 2000, 06:41 PM
#2
Fanatic Member
Try using the intermediate step of a picture box. Put the icon into the picture box, and then put the icon from the picture box into the listview.
------------------
John Percival
Editor, VB-World.net
[email protected]
-
Jan 8th, 2000, 10:25 PM
#3
Thread Starter
New Member
John,
I still got an error. This is my code
Private Sub Form_Activate()
Dim imgX As ListImage
Picture1.Picture = IconFromFile.GetIconFromFile("c:\windows\cdplayer.exe", 0, False)
Set imgX = imgProgList.ListImages.Add(, , Picture1.Picture)
End Sub
The Picture control show icon successfully but when it execute the next line it report an error "Out of Memory"
-
Jan 9th, 2000, 08:29 AM
#4
Registered User
I'll send you an e-mail with 2 bas files that can sold your problem.
It's the code that I use!
Boa sorte.
Jefferson
-
Jan 9th, 2000, 11:15 AM
#5
Hey Jeff, would U mind e-mailing it to me too ? I'm cusrious about this glitch too..
Knight
[email protected]
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
|