Krikke_vdk
Newcomer
Hi,
In VB 6 you have the standard forms collection. In VB.NET this collection doesn't exists anymore. So Im trying to build my own forms collection. I created a base class where all my other forms are based on. In this base class I add the form to a collection when it loads.
This works fine. I have some code in the collection class to add items to the collection and a property Item. This code is similar as in VB6 when you use the class builder (does the class builder exists in VB.NET) But the return type of the property item can not be set to the client class (= the classes the collection class contains). When I set the return type of my class equal to the client class a syntax error appears = "option strict on disallows implicit conversions from System.Object to the client class"
Do any of you have an idea on how to solve this issue?
If more information is required, just ask...
Thanks in advance
In VB 6 you have the standard forms collection. In VB.NET this collection doesn't exists anymore. So Im trying to build my own forms collection. I created a base class where all my other forms are based on. In this base class I add the form to a collection when it loads.
This works fine. I have some code in the collection class to add items to the collection and a property Item. This code is similar as in VB6 when you use the class builder (does the class builder exists in VB.NET) But the return type of the property item can not be set to the client class (= the classes the collection class contains). When I set the return type of my class equal to the client class a syntax error appears = "option strict on disallows implicit conversions from System.Object to the client class"
Do any of you have an idea on how to solve this issue?
If more information is required, just ask...
Thanks in advance