Mar 4, 2011 #1 gundie Programmer Feb 5, 2004 69 0 0 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 Feb 25, 2005 1,031 0 0 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 Feb 5, 2004 69 0 0 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 Feb 25, 2005 1,031 0 0 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