首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

c 语言变换为vb.net

2013-04-05 
c 语言转换为vb.net哪位大侠能帮我把下面代码 改成 VB.NET 吗private void treeListDsh_CustomDrawNodeInd

c 语言转换为vb.net
哪位大侠能帮我把下面代码 改成 VB.NET 吗
private void treeListDsh_CustomDrawNodeIndicator(object sender, DevExpress.XtraTreeList.CustomDrawNodeIndicatorEventArgs e)
        {
            DevExpress.XtraTreeList.TreeList tmpTree = sender as DevExpress.XtraTreeList.TreeList;
            DevExpress.Utils.Drawing.IndicatorObjectInfoArgs args = e.ObjectArgs as DevExpress.Utils.Drawing.IndicatorObjectInfoArgs;
            if (args != null)
            {
                int rowNum = tmpTree.GetVisibleIndexByNode(e.Node) + 1;
                args.DisplayText = rowNum.ToString();
            }
            e.ImageIndex = -1; 
        } vb.net
[解决办法]
移步》http://www.developerfusion.com/tools/convert/csharp-to-vb/
[解决办法]

Private Sub treeListDsh_CustomDrawNodeIndicator(sender As Object, e As DevExpress.XtraTreeList.CustomDrawNodeIndicatorEventArgs)
Dim tmpTree As DevExpress.XtraTreeList.TreeList = TryCast(sender, DevExpress.XtraTreeList.TreeList)
Dim args As DevExpress.Utils.Drawing.IndicatorObjectInfoArgs = TryCast(e.ObjectArgs, DevExpress.Utils.Drawing.IndicatorObjectInfoArgs)
If args IsNot Nothing Then
Dim rowNum As Integer = tmpTree.GetVisibleIndexByNode(e.Node) + 1
args.DisplayText = rowNum
End If
e.ImageIndex = -1
End Sub

热点排行