开发者

winforms how to convert the MouseEventArgs e.location to TableLayoutCellPaintEventArgs?

开发者 https://www.devze.com 2023-03-06 09:33 出处:网络
hi when i trigger the mouseClick event on a control within a tableLayoutPanel i get the location of the mouse within the cell.开发者_JAVA技巧 how do i convert that location in respect to the tableLayo

hi when i trigger the mouseClick event on a control within a tableLayoutPanel i get the location of the mouse within the cell.开发者_JAVA技巧 how do i convert that location in respect to the tableLayoutPanel?


Pass the mouse location to tableLayoutPanel.PointToClient() method.

For more details see http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoclient.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消