如何在鼠标悬停时显示矩形?
简而言之,当用户将鼠标移动到矩形内部时,如何显示矩形,我必须显示用户控件。
我不知道该怎么做。感谢社区所做的一切。
In a few words, how do I show a rectangle when the user moves the mouse over, inside of the rectangle I must show a user control.
I have no idea how to do that. Thanks for everything community.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的意思是用户控件应始终可见,而矩形仅应在鼠标悬停在其上方时可见?然后就可以了:(边框用于在另一个控件周围绘制一个矩形。)
(使边框背景透明,以便捕获边框内的鼠标事件)
If you mean that the user control should be seen all the time and the rectangle should only be seen when the mouse is over it? Then this works: (Border is used to draw a rectangle round another control.)
(Make the border background transparent in order to capture mouse events inside the border)