Ah, the good ol' collection object. Don't use that anymore, it's only there for making the VB6 migration easier and is not a native CLR member.

If you are using VB.NET 2002/2003, try using an ARRAYLIST instead.

If you are using VB.NET 2005 and you know the exact object type you will be storing in your array, try using a member of the System.Generic namespace, like the Generic.List().

Actually here is a list of all the functions that are not native CLR, and only exist to make migrating easier: http://msdn2.microsoft.com/en-us/lib...8f(d=ide).aspx

You should NOT be using any of the functions in the above link.