Re: Newbie Q: How to determine WHICH item was clicked on context menu

Tech-Archive recommends: Speed Up your PC by fixing your registry



ok... that definitely helps - I need to take a different approach!
Now can anyone point me toward some information on HOW to set that up?
I would really appreciate it.
Rex


On Thu, 21 Jun 2007 11:23:31 -0400, Rex
<RexForum4453@xxxxxxxxxxxxxxxxxx> wrote:

Hi All - In the following method (the click event of my Context Menu
control):

private void contextMenuStrip1_MouseClick(object sender,
MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
MessageBox.Show("left click");
}
}

the message "left click" successfully appears. What I can't figure out
(and this might be obvious!) is how to determine WHICH of the 5 menu
items that are found on my Context Menu that the User clicked.

Thanks,
Rex

.


Quantcast