求助:treeview控件,右键菜单不能连接窗体?
本帖最后由 uuufff163 于 2012-08-21 16:28:42 编辑 treeview控件 如何实现~点击右键菜单中的选项~弹出连接的窗体呢?
[最优解释]
你的右键菜单是如何添加的?
Dim ContextMenu As New ContextMenuStrip '右键菜单
Dim ContextMenuItem As New ToolStripMenuItem
ContextMenuItem.Name = "open"
ContextMenuItem.Text = "打开"
ContextMenu.Items.Add(ContextMenuItem)
AddHandler ContextMenuItem.Click, AddressOf Me.ContexMenuItems_Click
Private Sub ContexMenuItems_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim MenuItem As ToolStripMenuItem = CType(sender, ToolStripMenuItem)
If MenuItem.Name = "open" Then
form2.show()
End If
End Sub
[其他解释]
这用户名.......
[其他解释]