Its Urgent,Please help me out.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lathamoulali
    New Member
    • May 2008
    • 25

    Its Urgent,Please help me out.

    What is the Equivalent of the PictureBoxArray of vb6.0 in VB.NET..
    I have 49 pictureboxes..
    And i have used the PictureBoxArray .With this i am able to find out which picturebox is being clicked.

    How to do this in VB.NET..And i should not use the Microsoft.Visua lBasic.Compatib ility.

    Thanks,
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    2 ways to do this:
    Code:
    Dim pictureBoxList As New List(Of PictureBox) ()
    Dim pictureBoxArray(49) As PictureBox
    To use the first, you need this line at the top:
    Code:
    Imports System.Collections.Generic
    The first one is a list, so you don't have to define a size. You can use the .Add(pictureBox 1) to add items.
    The 2nd one is an array, so you have to define a size, and then just place items in each index like you normally would.

    Comment

    Working...