Hello,
I am trying to create a context menu for right clicking on a TreeView control (for deleting, etc...), using either the MouseDown or MouseUp event. When I put following code in:
I get an error message when I try to open the form with the TreeView on it:
"The expression On Open you entered as the event property setting produced the following error: Prodcedure declaration does not match description of event or procedure having the same name"
I have nothing in the form's On Open event. If I remove the mousedown sub from the code, everything compiles fine. Any ideas?
I am trying to create a context menu for right clicking on a TreeView control (for deleting, etc...), using either the MouseDown or MouseUp event. When I put following code in:
Code:
Private Sub TestTree_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) If Button = acRightButton Then MsgBox "" End Sub
"The expression On Open you entered as the event property setting produced the following error: Prodcedure declaration does not match description of event or procedure having the same name"
I have nothing in the form's On Open event. If I remove the mousedown sub from the code, everything compiles fine. Any ideas?
Comment