2013-7-22 确定鼠标与控件位置关系

Rectangle rect1 = panel1.Bounds;

rect1 = MF.mf.RectangleToScreen(rect1);

if (rect1.Contains(MousePosition))... // MousePosition是鼠标绝对位置,所有控件的边界必须用顶级父窗口来RectangleToScreen,否则定位不准}

原文地址:https://www.cnblogs.com/mol1995/p/5965139.html