G
Guest
Hi guys,
First off i'm using VB with VS2005 Beta2
I'm looking to make a Collection of a class I am going to call DisplayObject.
This class will have a few properties that i can call.. (These will include
Name and Value amongst other things)
I want to make a Collection of DisplayObjects which should (will) only
contain display objects.
The problem is when i retrieve one from that collection I get an Object when
I want a DisplayObject. Is there a way I can convert that object to a
DisplayObject?
When I try an implicit conversion i.e.
Dim myDisplayObject as DisplayObject = myCollection.Item(index)
but this gives me a warning when i try to build and I get a 'Build Failed'
status
Any ideas?
First off i'm using VB with VS2005 Beta2
I'm looking to make a Collection of a class I am going to call DisplayObject.
This class will have a few properties that i can call.. (These will include
Name and Value amongst other things)
I want to make a Collection of DisplayObjects which should (will) only
contain display objects.
The problem is when i retrieve one from that collection I get an Object when
I want a DisplayObject. Is there a way I can convert that object to a
DisplayObject?
When I try an implicit conversion i.e.
Dim myDisplayObject as DisplayObject = myCollection.Item(index)
but this gives me a warning when i try to build and I get a 'Build Failed'
status
Any ideas?