In my VB 6 code, I had many classes and depended on the ability to loop through the objects to get at the data. How is this done in VB.NET? Here's a very simple example of what I'd like to be able to do in VB.NET. In my Accounts class I wrote my own Count property, but the Item property is the main problem. There must me a new way of doing this.
Dim x as Integer
Dim obj as Account
Dim col as Accounts
For x = 1 to col.Count
Set obj = col.Item(x)
Msgbox(obj.Name)
Next
Thanks in advance,
Sheryl