473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to create picturebox array ?

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.

Jul 2 '07 #1
2 2802
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]
- mv*@spam.guard.caspershouse.com

"Boki" <bo******@ms21.hinet.netwrote in message
news:11**********************@i38g2000prf.googlegr oups.com...
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.

Jul 2 '07 #2
On Jul 2, 11:21 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
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]
- m...@spam.guard.caspershouse.com

"Boki" <bokit...@ms21.hinet.netwrote in message

news:11**********************@i38g2000prf.googlegr oups.com...
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.

Jul 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Jan Nielsen | last post by:
Hi I would like to databind a Picturebox to a SQL Server. I have a typed Dataset "DSBoernekirken1" It has a table named "tpersoner" with a column "Photo" I of course would like to bind the...
6
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
0
by: Frustrated | last post by:
I have a third party DLL that communicates with a camera (Sony 1384) and I have it working where the image is being displayed in a picturebox. I am using VB.NET . There is a function in the...
13
by: vfiroiu | last post by:
I want to create an array of lines when my form loads inside of a picture box, without having to copy-paste on the form. so far, i have created a line on the form and set its index to 0. then, in the...
6
by: robusto33 | last post by:
Hi everyone, I'm really new to C#.net development, especially for win32 applications. I'm basically making a board game and was wondering if anyone could help me out with this predicament: I have...
3
by: Supriya | last post by:
Hi , Can anybody give me some information on how to create an activeX Control in C# with a Picturebox. Thank you, Supriya
4
by: Jerry West | last post by:
I have a routine that updates a PictureBox image every x seconds. I do this by first loading an array with the path to all of the images. I then generate a random number to use as the index of the...
4
by: munibe | last post by:
Hi, i have a problem about picturebox control. if you may help me, i will be so happy. i have a picturebox named pic_map, and i added a button named customer_button, my wish is to add a new small...
4
by: Jim McGivney | last post by:
In C# on Form1 I genetate an array of PictureBoxes and populate each with an image as seen in the code below. Later on I want to access a specific PictureBox to change its image, but I keep...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.