ARRAY PROBLEMS(vb6)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akynaya
    New Member
    • Jul 2007
    • 27

    ARRAY PROBLEMS(vb6)

    hi... im doing this system wherein there are images that can be clicked using the command button. these are my codes:

    [CODE=vb]Command1_Click
    Picture2.Pictur e = Command3.Pictur e
    Picture2.Visibl e = True
    Picture2.Pictur e = LoadPicture("ma n.bmp")
    end sub[/CODE]
    i wanted the command button to create same images but it shall display all these same images depending on how many times the user clicks the command button..

    i've already tried searching and to no avail... i cant find an array example of this
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Sorry, can you explain further what it is you want an array for? What sort of array? Are we talking about an array of picturebox controls? A string array to hold names of pictures, or what?

    Comment

    • akynaya
      New Member
      • Jul 2007
      • 27

      #3
      i am talking about an array that can hold images and put it in another picture box.. the system that im doing is like a flowcharting system...

      i would really appreciate your help

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by akynaya
        i am talking about an array that can hold images and put it in another picture box.. the system that im doing is like a flowcharting system...
        If you want to hold an array of names and load the images as required, just create a string array to hold them.

        If you want to load the actual images into an array, you can create an array of type StdImage. This object type has many of the same properties as the picturebox control.

        Comment

        Working...