开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜