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
Printable View
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
Put it into a resource file, and use LoadResPicture.
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)