Results 1 to 3 of 3

Thread: Picture Box or Image from Image List...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Atlanta, GA
    Posts
    80

    Question

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    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
  •  



Click Here to Expand Forum to Full Width