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:
Dim i As Integer
If Class = 1 Then
For i = 0 To 52
pic_item(i).picture = "C:\pathtoimage\class1\image" & i & ".gif"
Next i
End If
but apparently I can't
Is there a way to do this that doesn't involve me clicking 156+ different times??