Creating HotSpots in C#

前端 未结 4 505
南笙
南笙 2021-01-24 00:23

... Is it possible to create hot-spots in C# so that when the mouse is over a certain area an event gets triggered?

4条回答
  •  自闭症患者
    2021-01-24 01:06

    Create a transparent Panel (truly transparent - by setting the WS_EX_TRANSPARENT bit in its extended window style - here's how), put it in the position you want on top of other controls, and handle MouseMove on it.

提交回复
热议问题