Array for Form objects 
Author Message
 Array for Form objects

Hi,

    I used to be able to do this and I'm sure there is a way to do it in
VB.net but I just can't seem to put the fingure on the best way.

I would draw a picture box then cut and paste it and answer yes that I want
an array of this object. Now if I try to paste it it changes the name and if
I change the declare to

Friend WithEvents pictureBox(10) as ... it says that the array does not
permit WithEvents. How am I suppose to work with array objects???

thank you
Roch G.



Tue, 10 May 2005 04:59:25 GMT  
 Array for Form objects
Bad news - control arrays are GONE. You will have to find new ways of doing
what you used to do with control arrays. If you give more detail I can make
a suggestion.

Chris

Quote:
> Hi,

>     I used to be able to do this and I'm sure there is a way to do it in
> VB.net but I just can't seem to put the fingure on the best way.

> I would draw a picture box then cut and paste it and answer yes that I
want
> an array of this object. Now if I try to paste it it changes the name and
if
> I change the declare to

> Friend WithEvents pictureBox(10) as ... it says that the array does not
> permit WithEvents. How am I suppose to work with array objects???

> thank you
> Roch G.



Tue, 10 May 2005 05:32:18 GMT  
 Array for Form objects
There is no control array support built-in to Vb.Net. You can however work
around it. One of the easiest ways to see such code would be to upgrade a
VB6 project containing the control array and see the code that is spit out.

It all depends on what you want to do with your array of pictureboxes.

Sam

--
This posting is provided "AS IS" with no warranties, and confers no rights.


Quote:
> Hi,

>     I used to be able to do this and I'm sure there is a way to do it in
> VB.net but I just can't seem to put the fingure on the best way.

> I would draw a picture box then cut and paste it and answer yes that I
want
> an array of this object. Now if I try to paste it it changes the name and
if
> I change the declare to

> Friend WithEvents pictureBox(10) as ... it says that the array does not
> permit WithEvents. How am I suppose to work with array objects???

> thank you
> Roch G.



Sat, 14 May 2005 04:47:10 GMT  
 Array for Form objects



Quote:
> There is no control array support built-in to Vb.Net. You can however work
> around it. One of the easiest ways to see such code would be to upgrade a
> VB6 project containing the control array and see the code that is spit

out.

Why is control array support gone? I know how to work around it and I have
but I have been curious for a while as to why we have to work around it.



Fri, 20 May 2005 11:17:30 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Arrays of form objects in VB.net

2. Array of Form Objects - Possible???

3. How to bind Array of Objects to Window Forms Control

4. Passing form and object array

5. Linking Form Objects in HTML to other Form Objects using VBScript

6. Object array to string array

7. How to store object to an object array?

8. Passing data arrays from object to object

9. Open form, close form, open form = disposed object exception

10. Passing dynamic array of custom type to form method from another form

11. How To Open a Form from an Array of Form Names

12. Multiple Forms Question: Object reference not set to an instance of an object

 

 
Powered by phpBB® Forum Software