endless array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ventsislav
    New Member
    • Mar 2009
    • 16

    endless array

    How can I make an endless array of PictureBox, because I don' t know how many objects will be made in runtime?

    Thanks.
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Well... 'endless' is kind of a dangerous term to throw around. Your PC doesn't have an 'endless' amount of memory so there will be practical limitations to how many images you can hold at one time.

    Maybe you could describe your goal/project a little more.

    Comment

    • Bassem
      Contributor
      • Dec 2008
      • 344

      #3
      You may declare a list of the type you want.
      List<PictureBox > myPB;
      It shall make an array with no fixed capacity, add any time, remove, and manipulate.
      You'll find it in System.Collecti ons.Generic namespace.

      Comment

      Working...