How to create picturebox array ?

  • Thread starter Thread starter Boki
  • Start date Start date
B

Boki

Hi All,
I remember in VB6, we can create any component array just by copy and
paste, and the IDE will ask us to use a component array or not.

I did the same thing on C#, it will auto create the next picturebox,
the name is something like: picturebox2.

if they are not array, I will be very difficult to program them ...

Best regards,
Boki.
 
Boki,

Well, what are the advantages that you would get from an array over not
having them in an array? The thing that control arrays helped with in VB6
was that you could have one event handler for any control in the array.
However, that isn't needed in .NET, since the sender parameter of the event
handlers indicates which object fired the event, so you can easily assign
the same event handler to multiple sources.
 
Boki,

Well, what are the advantages that you would get from an array over not
having them in an array? The thing that control arrays helped with in VB6
was that you could have one event handler for any control in the array.
However, that isn't needed in .NET, since the sender parameter of the event
handlers indicates which object fired the event, so you can easily assign
the same event handler to multiple sources.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Hi All,
I remember in VB6, we can create any component array just by copy and
paste, and the IDE will ask us to use a component array or not.
I did the same thing on C#, it will auto create the next picturebox,
the name is something like: picturebox2.
if they are not array, I will be very difficult to program them ...
Best regards,
Boki.

Got it! Great! Thanks!

Boki.
 
Back
Top