如何用inputbox输入创建treeview节点??
我想给treeview添加节点 鼠标右键菜单 添加 然后弹出一个inputbox输入节点名字 添加treeview节点
这个inputbox添加节点应该怎么实现
大侠们 能不能举个例子说明下
我想给treeview添加节点 鼠标右键菜单 添加 然后弹出一个inputbox输入节点名字 添加treeview节点
这个inputbox添加节点应该怎么实现
大侠们 能不能举个例子说明下
Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
If e.Button = Windows.Forms.MouseButtons.Right Then
e.Node.Nodes.Add(InputBox(" 请输入要添加的节点文本信息", "添加节点", "SubNode"))
End If
End Sub
http://www.host01.com/article/Net/00020007/0561317385634376.htm