Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to capture where I'm right mouse clicking?

Status
Not open for further replies.

gundie

Programmer
Feb 5, 2004
69
US
I have 2 datagridview on a form, and I want to capture which datagridview the user right mouse click on. How can I do that?
 
Check MouseDown and CurrentCell.

It's better if you post code so that people can guide you to the right solution.

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
But currentcell only tells me which is the current cell for each grid. I want to capture which grid was the right mouse click clicked on.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top