G
Guest
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
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