Mar 4, 2011 #1 gundie Programmer Joined Feb 5, 2004 Messages 69 Location 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?
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?
Mar 5, 2011 #2 RonRepp Technical User Joined Feb 25, 2005 Messages 1,031 Location US 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 http://www.repproductions.net Upvote 0 Downvote
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 http://www.repproductions.net
Mar 5, 2011 Thread starter #3 gundie Programmer Joined Feb 5, 2004 Messages 69 Location US 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. Upvote 0 Downvote
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.
Mar 5, 2011 #4 RonRepp Technical User Joined Feb 25, 2005 Messages 1,031 Location US Try hittestinfo...again, if you posted some code... Ron Repp If gray hair is a sign of wisdom, then I'm a genius. My newest novel: Wooden Warriors http://www.repproductions.net Upvote 0 Downvote
Try hittestinfo...again, if you posted some code... Ron Repp If gray hair is a sign of wisdom, then I'm a genius. My newest novel: Wooden Warriors http://www.repproductions.net