Control array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim McGivney

    Control array

    I am working on an ASP.net project with code behind in C#.
    I must manipulate the contents of many image controls.
    In visual basic (VB6) I could place all the controls into a control array
    and then refer to an individual control by it's index number.
    I would like to do the same in C#.
    Can someone suggest a method I should use ?
    Thanks,
    Jim


  • Rick Strahl [MVP]

    #2
    Re: Control array

    Hi Jim,

    Not directly as there is no direct concept of a control array. But you can
    certainly create a panel control and add the images to that which gives a
    control collection that you can access by index.

    +++ Rick ---

    --

    Rick Strahl
    West Wind Technologies
    Home of Rick Strahl's company site. Find products, tools and development service, read our development blogs and white papers about Web and Service development on the Microsoft and open Web stack.




    "Jim McGivney" <mcgiv1@no-spam.sbcglobal. net> wrote in message
    news:OE2lYaD%23 FHA.3692@tk2msf tngp13.phx.gbl. ..[color=blue]
    >I am working on an ASP.net project with code behind in C#.
    > I must manipulate the contents of many image controls.
    > In visual basic (VB6) I could place all the controls into a control array
    > and then refer to an individual control by it's index number.
    > I would like to do the same in C#.
    > Can someone suggest a method I should use ?
    > Thanks,
    > Jim
    >[/color]


    Comment

    Working...