开发者

to find whether the mouse is moving over particular control or point on screen

How to know whether the mouse is moving over the particular control or point on screen..

Dont ask me to use mouse events of controls.. i want to trace points

in windows form....

Actually i have a combobox and some开发者_JAVA百科 items in there in the combobox, when the mouse moves over the items when the combobox is dropped down state, the tooltip for the respective item over which the mouse is, should be displayed


Like this:

if (someControl.RectangleToScreen(someControl.ClientRectangle).Contains(MousePosition))

However, this won't work for the items in a combobox.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜