将光标放在Labe控件上应该突出显示具有不同更多控件的表单 [英] Placing Cursor on a Labe control should highlight a form having different more control

查看:103
本文介绍了将光标放在Labe控件上应该突出显示具有不同更多控件的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows应用程序中,当用户将光标放入标签控件时,它应突出显示具有一些控件来操作数据的表单,每当用户移动光标时,表单将被隐藏。您的好建议将不胜感激。

In a Windows Application, when the user will place the cursor into a label control it should highlight a form having some controls to manipulate data, whenever the user will move the cursor the form will be hidden. Your good suggestion will be appreciated.

推荐答案

您需要处理这些事件:

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseenter.aspx [ ^ ],

http ://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseleave.aspx [ ^ ]。



As为每当用户移动光标时,表格将被隐藏,它将需要处理事件 http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousemove.aspx [ ^ ]。



然而,最后一件事几乎没有任何实际意义。想象一下用户的困惑。



-SA
You need to handle these events:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseenter.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseleave.aspx[^].

As to "whenever the user will move the cursor the form will be hidden", it would need to handle the event http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousemove.aspx[^].

However, the last thing can hardly make any practical sense. Just imagine the user's confusion.

—SA


这篇关于将光标放在Labe控件上应该突出显示具有不同更多控件的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆