Click here to Skip to main content
15,030,240 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am porting a VB6 project to VB.Net 4.0. Till .Net 3.5 we can use VisualBasic.Compatability dll to support the VB6 control and classes , but in .Net4 this is obsolete.

I have a Class with inherits BaseControlArray class and uses its class. I cant find any replacement or any solution for this. I Googled a lot to find solution. Is there any way to overcome this issue?
Updated 13-Apr-11 21:23pm

1 solution

Rewrite an just use a generic collection, List(Of Button) for example, to keep references to the controls you want to keep in "an array".
Baji Jabbar 18-Apr-11 9:11am
The file is created dynamically by the Porting Engine. It uses some Function in BaseControlArray class. I have to find alternatives for that also. Any suggestion.
Dave Kreskowiak 18-Apr-11 13:15pm
Great... you'll have to rewrite the sections of code that handle this by hand. I already told you how to handle simulating control arrays.

No, the wizard does not do a perfect job of converting code. Nothing does.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900