Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I wuld like to make a menu appear when i click on the treeview control in my application.

 

I have the following but where do I get the menu from.

 

Private Sub trvAdmin_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles trvAdmin.MouseDown
       If e.Button = MouseButtons.Right Then
           MsgBox("Show menu")
       End If
   End Sub

 

Thanks

 

Cire

Trust the Universe
Posted (edited)

Use a subset of the mainmenu ?

 

Can I use a subset of the mainmenu?

I'm using the sandbar toolbar and i have a menu item in there that's calles mnuNew where you can create indexsets, listboxes, dateboxes and textboxes.

How can I use that mnuNew item in the rightmouse-Click menu.

 

Cire

Edited by feurich
Trust the Universe

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...