从VB6移植到VB.Net时,BaseControlArray问题 [英] Porting from VB6 to VB.Net , BaseControlArray issue

查看:209
本文介绍了从VB6移植到VB.Net时,BaseControlArray问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将VB6项目移植到VB.Net 4.0.直到.Net 3.5,我们都可以使用VisualBasic.Compatability dll支持VB6控件和类,但是在.Net4中,这已经过时了.

我有一个继承自BaseControlArray类的类,并使用其类.我找不到任何替代品或任何解决方案.我在Google上搜索了很多以找到解决方案.有什么办法可以解决这个问题?

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?

推荐答案

重写一个仅使用通用集合的示例,例如List(Of Button),以保留对您要保留的控件的引用在数组"中.
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".


这篇关于从VB6移植到VB.Net时,BaseControlArray问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆