在.NET VB6控件数组?数组、控件、NET

2023-09-03 01:38:57 作者:命甴己造

现控制阵列支持在.net中?我们谈论的是转换遗留应用程序从VB6到.NET。该应用程序有很多的控制阵列。我读过的不同,如果.NET支持控件数组不同的文章。

Are control arrays supported in .Net? We are talking about converting a legacy app from VB6 to .Net. The app has a lot of control arrays. I've read different articles that differ if .Net supports control arrays.

谁能给我一个明确的答案,如果.NET支持像VB6做控件数组?这是对于.NET 4.0的最新版本?或者是有一个版本的限制?

Can anyone give me a definitive answer if .Net supports control arrays like VB6 does? Is this for the latest version of .Net 4.0? Or is there a version limitation?

此外,如果这是可能的是它的直转换?如果不是燃烧的篮球总会有必须去跳来实现这一目标?

Also, if this is possible is it a straight conversion? If not what flaming hoops would one have to jump through to make this happen?

感谢您!

推荐答案

一个直转换是不可能的,但你可以以不同的方式创建控件数组:的创建控件在Visual Basic .NET和数组的Visual C#.NET

A "straight conversion" is not possible, but you can create control arrays in a different way: Creating Control Arrays in Visual Basic .NET and Visual C# .NET