VB中treeview双击事件代码怎么写啊
这是每个节点的点击事件,双击事件怎么写啊?Private Sub Form_Load()
TreeView1.LineStyle = tvwRootLines
TreeView1.Nodes.Add , , "dianshi", "电视"
TreeView1.Nodes.Add "dianshi", tvwChild, "hebei1", "河北卫视"
TreeView1.Nodes.Add "dianshi", tvwChild, "hebei2", "河北经济"
End Sub
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
If (Node.Key = "hebei1") Then
WMP1.URL = "mms://mms.
ElseIf (Node.Key = "hebei2") Then
WMP1.URL = "mms://mms.
End If
End Sub
treeview.rar
(2.09 KB)
[ 本帖最后由 统一电讯 于 2009-11-2 17:03 编辑 ]