Raghavendra u
posted
39 posts
since
Jul 02, 2008
from
|
|
Re: right click event
|
|
|
|
|
|
|
|
|
|
hi,
try with contextmenu stip control.
|
|
|
|
|
|
Majid Kamali
posted
166 posts
since
Jul 13, 2010
from
Iran, Tehran
|
|
Re: right click event
|
|
|
|
|
|
|
|
|
|
|
I just want when right click was pressed, program performs a specific action. (one work)
|
|
|
|
|
|
Felipe Ramos
posted
242 posts
since
Feb 28, 2008
from
|
|
Re: right click event
|
|
|
|
|
|
|
|
|
|
You don't have a different event for each click. You just need to handle the MouseClick event from your picturebox and check the EventArg.Button property.
In Lambda pictureBox1.MouseClick += (s, ev) => { if (ev.Button == MouseButtons.Right) { } };
Event Delegate
pictureBox1.MouseClick+=new MouseEventHandler(pictureBox1_MouseClick); protected void pictureBox1_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { } }
|
|
|
|
|
|