开发者

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

开发者 https://www.devze.com 2023-01-10 12:00 出处:网络
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..

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

精彩评论

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