Rich,
There is one thing that every regular in this newsgroup tels about the
microsoft.visualbasic.namespace they should in that not have included the
collection, that one is weird working.
Try the arraylist or any other collection or list from system.
For the rest, I don't understand your problem (probably it is a cast
problem), if nobody else answers, than please rephrase.
And than not with the collection but with by instance the arraylist (the
most basic one).
http://msdn2.microsoft.com/en-us/lib...llections.aspx
I hope this helps,
Cor
"Rich" <(E-Mail Removed)> schreef in bericht
news:740682E3-F13D-4D85-B18B-(E-Mail Removed)...
> In VB6 I used to be able to add an object like a textbox and see the
> dropdown
> properties of that textbox from the collection object:
>
> Dim col as collection
> set col = new collection
> col.Add(txt1)
>
> col(0).Text = "test"
>
> This is not happening in VB.Net. Is there a way to use a collection
> object
> in VB2005 this way? Or is there another object I should use that can do
> this? Actaully, what I am storing in the collection object is a
> DataTable.
> I want to do something like this:
>
> tblColl.Add(dataset1.tbl1)
> tblColl.Add(dataset1.tbl2)
> ...
> For i As Integer = 0 to tblcoll(j).Rows.Count - 1
> ...
>
> But I don't Rows after tblColl(0). What should I do to perform this kind
> of operation with my datatables?
>
> Thanks,
> Rich