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. Contextmenu events

Contextmenu events

Scheduled Pinned Locked Moved C#
databasehelpquestionoracletutorial
3 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.
  • N Offline
    N Offline
    NK7
    wrote on last edited by
    #1

    Hi I have one treeview there i have Database SQL ORACLE DB2 I have created one context menu ContextMenu cMenu=new ContextMenu(0; cMenu.Add("New"); cMenu.Add("Edit"); cMenu.Add("Schedule"); What is my problem is how to populate the context menu in database click(SQL, ORACLE or DB2) also how to capture the event to do some functionalities for edit, new and schedule. anyone help me pleaseeeeeee? kesavan

    D 1 Reply Last reply
    0
    • N NK7

      Hi I have one treeview there i have Database SQL ORACLE DB2 I have created one context menu ContextMenu cMenu=new ContextMenu(0; cMenu.Add("New"); cMenu.Add("Edit"); cMenu.Add("Schedule"); What is my problem is how to populate the context menu in database click(SQL, ORACLE or DB2) also how to capture the event to do some functionalities for edit, new and schedule. anyone help me pleaseeeeeee? kesavan

      D Offline
      D Offline
      darkcalin
      wrote on last edited by
      #2

      this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2}); this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup); // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "xczcxz"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "zxczx"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); see here may be you goth somme ideea

      N 1 Reply Last reply
      0
      • D darkcalin

        this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2}); this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup); // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.Text = "xczcxz"; this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.Text = "zxczx"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); see here may be you goth somme ideea

        N Offline
        N Offline
        NK7
        wrote on last edited by
        #3

        Thanks a lot for your timing help. kesavan

        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