D
DrPete
Hi
I have a contextmenu that is created by looping through a datarow view
and in the foreach loop I have this:
ToolStripMenuItem menuItem = new ToolStripMenuItem();
menuItem.Text = row["Name"].ToString();
menuItem.Name = row["StockCategoryId"].ToString();
menuItem.Click += new EventHandler(MoveTo_Click);
moveToMenuItem.DropDownItems.Add(menuItem);
The MoveTo_Click event performs something based on what
ToolStripMenuItem was chosen.
How do I get what this chosen item was?
Thanks for your time
Peter
I have a contextmenu that is created by looping through a datarow view
and in the foreach loop I have this:
ToolStripMenuItem menuItem = new ToolStripMenuItem();
menuItem.Text = row["Name"].ToString();
menuItem.Name = row["StockCategoryId"].ToString();
menuItem.Click += new EventHandler(MoveTo_Click);
moveToMenuItem.DropDownItems.Add(menuItem);
The MoveTo_Click event performs something based on what
ToolStripMenuItem was chosen.
How do I get what this chosen item was?
Thanks for your time
Peter