How to create picturebox array ?

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.
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
B

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.

--
- 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top