开发者

Is there a VB.NET equivalent of the VB6 Support.TabLayout Method?

开发者 https://www.devze.com 2023-04-03 22:52 出处:网络
I\'m currently tidying up some converted VB6->VB.Net code at work, but I\'m trying to find the .Net equivalent of the Support.TabLayout Method without much luck:

I'm currently tidying up some converted VB6->VB.Net code at work, but I'm trying to find the .Net equivalent of the Support.TabLayout Method without much luck:

Debug.Print(VB6.TabLayout(intPages, lngColumn, .ColPageBreak, .Text))
开发者_JAVA技巧

Does anyone know of the equivalent or alternative to this method?


It is an untrivial method to replace, nothing close in the regular framework. Avoid burning too much effort on a debugging aid. A simple direct translation could be:

    Debug.Print("{1}{0}{2}{0}{3}{0}{4}", vbTab, "one", 2, "three", 4)


How about using the String.Join() method passing the tab character as a separator and an array of values to join?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号