|
-
Aug 21st, 2000, 04:37 PM
#1
Thread Starter
Lively Member
Can I load a pic from an ImageList into a Picture Box or Image control?
What is the best way to package an image into an appication? Am I thinking on the right path?
Thanks,
Kevin
-
Aug 21st, 2000, 04:41 PM
#2
Monday Morning Lunatic
Put it into a resource file, and use LoadResPicture.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 21st, 2000, 04:52 PM
#3
This example will load a Bitmap from a Resource file. Replace 100 with your resource ID. (Keep in mind that when creating resources, you cannot use 1 as the ID as it's reserved for the App's icon)
Code:
Picture1.Picture = LoadResPicture(100, vbResBitmap)
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
|