Mouse Right Click Event

  • Thread starter Thread starter bslim
  • Start date Start date
B

bslim

Guest
Hi all,

Can I know how to detect a mouse right click event?

I had used the following method, but there is some compilation error.

Thanks. Please help.


private

void dataGridView1_MouseDown(object sender, MouseEventArgs e)

{

if (e.Button = Right)

{

dataGridView1.ContextMenu = contextMenu1;

dataGridView1.ContextMenu.Show(dataGridView1, e.Location);

}

}


Continue reading...
 
Back
Top