473,569 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2813
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.co m

"Boki" <bo******@ms21. hinet.netwrote in message
news:11******** **************@ i38g2000prf.goo glegroups.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.guar d.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.c om

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

news:11******** **************@ i38g2000prf.goo glegroups.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
4636
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 image directly to tpersoner.photo using Properties (like I do with text fields), but this does not seem to be possible. Then I searched some news...
6
4736
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 size of a thumbnail and set the sizemode to Stretch -- I get one thumbnail. I want to retrieve all the picture files (jpg, bmp) in a directory into...
0
3180
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 legacy DLL that allows me to send in the PictureBox Handle and the image is then set to that handle. I have the need to obtain the bytes from the...
13
3412
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 code i put For LinCount = 1 To (somenumber) Load BoxlinBorder(LinCount) Next LinCount which creates the lines without any errors. I still...
6
25778
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 a dynamically created array based on the size of the Board (13x13 or 19x19). I can make the array fine and position the pictureBoxes over the...
3
2391
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
13426
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 array. A timer is set to update the PictureBox. This works great the first time through but fails on all subsequent Timer events. If I simply step...
4
3803
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 picturebox on the map_picture and the new added picturebox should have click event to get the location of it when it is clicked. i have written some...
4
3691
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 getting the error "The name 'PictureBox1' does not exist in the current context" The code I use to try to access the PictureBox is "PictureBox1.Image =...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.