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