feurich Posted February 2, 2004 Posted February 2, 2004 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 Quote Trust the Universe
Administrators PlausiblyDamp Posted February 2, 2004 Administrators Posted February 2, 2004 You could add a context menu to the form and associate it with the tree view. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
feurich Posted February 2, 2004 Author Posted February 2, 2004 (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 February 3, 2004 by feurich Quote Trust the Universe
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.