I've followed the code in this example: http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/VB_Controls/Q_20942908.html
but still cannot get my menu to work.
I'm creating an ActiveX control in VB6 and created a menu using the menu editor that looks like this:
with names nodemenu, nodemenuup and nodemenudown respectively.
Then in my code I have the following relevent bits:
Event MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Private Sub TreeView1_MouseDown(Button
As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
When I run it and right click on the control I get the error: 428 popup menu must have at least one submenu
I tried creating this on a seperate form and that didn't seem to have any effect.
For bonus points how do I then assign code to the menu click events?