Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Popmenu

Popmenu

Scheduled Pinned Locked Moved C#
helpdata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cishi_us
    wrote on last edited by
    #1

    Hi all experts,,,, i have a problem,that i have developed a module(window application) in which there is a tree control.In tree control there are items in nodes of tree control.I want to select the item and do right click on that item and i got a popmenu.means that as the menu we use in our common applications which contain cut,copy etc. Plz help me as soon as possible. With regards Ishtiaq Ahmed

    A 1 Reply Last reply
    0
    • C cishi_us

      Hi all experts,,,, i have a problem,that i have developed a module(window application) in which there is a tree control.In tree control there are items in nodes of tree control.I want to select the item and do right click on that item and i got a popmenu.means that as the menu we use in our common applications which contain cut,copy etc. Plz help me as soon as possible. With regards Ishtiaq Ahmed

      A Offline
      A Offline
      Ashok Dhamija
      wrote on last edited by
      #2

      Do as under: 1. In the designer mode, drag a ContextMenu control from the ToolBar to the Form (on which your TreeView control is placed). It is named as ContextMenu1. 2. Add items (as per your requirement) to this ContextMenu instance in the space provided therein (with the prompt of "Type here") as you would while building a normal menu. 3. In the designer mode itself, now select your instance of TreeView control and in its Properties window, select the ContextMenu property and assign the value of the aforesaid instance "ContextMenu1" which you have just designed. 4. Now, just compile and run it. When you right-click on a node, you'll see a popup menu with the items you just placed as above. 5. For adding functionality to the menu items in the aforesaid ContextMenu, use the eventhandler for the click event of the particular menu item.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups