Hi
Currently i am doing the right click button for the treeview to add or remove folder, but i receive the error messages.... i try import these packages, also cannot worked....
Imports System
Imports System.Drawing
Imports System.Windows.Forms
The error are:
Value of type 'Integer' cannot be converted to 'System.Drawing.Point'. (for e.Y)
And
Too many arguments to 'Public Sub Show(control As System.Windows.Forms.Control, pos As System.Drawing.Point)'.
(for e.X)
Below is the code:
Private Sub trOwn_MouseDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.MouseEventArgs) _
Handles trOwn.MouseDown
'If the right button is down
If e.Button = MouseButtons.Right Then
'Find the item that was clicked on
contextMenuNode = trOwn.GetNodeAt(e.X, e.Y)
'If found, display the context menu
If Not IsNothing(contextMenuNode) Then
ContextMenu1.Show(trOwn, e.X, e.Y) ----- Error occur
End If
End If
End Sub
Anyway to resolved or improve....
Thanks