Results 1 to 3 of 3

Thread: picture property [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943

    picture property [RESOLVED]

    Heh, been awhile since I've posted with an actual VB question, and I've forgotten a lot in that time.

    Apparently you can't set a pictureboxes .picture property to an image path (I'm a hard interface kind of guy, if you like fancy graphics and hate reading, don't use my programs). This creates a problem because I have 3 sets of 52 different images (image1.gif, image2.gif, image3.gif.... in class1/ class2/ class3/) that I want to be able to load based upon a user's selection (of class). This of course could be achieved by making 3 difference frames, each with 52 pictureboxes already set with each of the 52 images, which would take me a few years to do.

    I was hoping I could do something like:
    VB Code:
    1. Dim i As Integer
    2. If Class = 1 Then
    3. For i = 0 To 52
    4.  
    5. pic_item(i).picture = "C:\pathtoimage\class1\image" & i & ".gif"
    6.  
    7. Next i
    8. End If

    but apparently I can't

    Is there a way to do this that doesn't involve me clicking 156+ different times??
    Last edited by Skitchen8; Jul 11th, 2004 at 04:36 PM.
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

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