Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


How To fire Mouse right Click on Picture box??
Posted

Get some help from here[^]
 
Share this answer
 
Comments
ajay.anilmaddi 17-May-12 6:33am    
Hi Prasad,
I need To raise MouseRightClick Event
Put your mouse pointer over the PictureBox, and press and release the right hand button...


Alternatively, if you mean "how do I set up a handler for right Click on PictureBox?" then highlight it in the designer, look at your Properties pane, select the Events list (press the "lightening bolt" button) and double click the "MouseUp" event. In the code that results, check the e.Button value with MouseButtons.Right
 
Share this answer
 
Comments
ajay.anilmaddi 17-May-12 6:49am    
ThankQ, Its working
sharmarun 18-May-12 5:42am    
originalGriff whatever your name do not demoralize anyone here so that
people stop share their problems on This site
plz plz
sunandandutt 18-May-12 5:44am    
I agree with sharmarun
You can use the MouseClick[^] event and check which button was pressed from MouseEventArgs [^]
 
Share this answer
 
Comments
ajay.anilmaddi 17-May-12 6:32am    
Hi Mika,

I need To raise MouseRightClick Event
Wendelius 17-May-12 7:43am    
Both buttons generate MouseClick. Just check the button from the eventargs (see the link).
use the MouseClick event or add ContextMenuStrip1 controls
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900