Foxtable(狐表)用户栏目专家坐堂 → 目录树插入节点提示错误


  共有1598人关注过本帖树形打印复制链接

主题:目录树插入节点提示错误

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251060 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2016/12/19 8:53:00 [显示全部帖子]

Dim tr As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim nd As WinForm.TreeNode = tr.SelectedNode
If nd Is Nothing Then
    Return
End If
Dim id As Integer = nd.index
If nd.ParentNode Is Nothing Then
    nd = tr.Nodes.Insert("新节点",id)
Else
    nd = nd.ParentNode.Nodes.Insert("新节点",id)
End If
tr.SelectedNode = nd
tr.Select
tr.BeginEdi

 回到顶部