将重点放回表格 [英] Back the focus to the Form

查看:87
本文介绍了将重点放回表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个问题,我正在使用窗体的Key Down事件,并且只有在窗体加载时才能被触发,但是当我将焦点移到文本"框等窗体的元素时,由于无法支持焦点,因此无法再次触发此事件再次单击该窗体,如果我用鼠标单击该窗体中的任何位置,它什么也不做,并且当我再次单击该窗体中的任何位置时,文本框仍然具有焦点,而其他控件必须失去焦点时,文本框仍然具有焦点有人帮助我吗?
在Advanced

hello guys ,
i have a problem i am using Key Down Event of the form and i can be fired only when the form Loaded but when i give the focus to an element of the form Like Text box can not fire this event again because focus can not be backed to the Form again and if i clicked by mouse any where in the form it do nothing and still the text box have the focus i want to when i click any where in the form the form focused once again and any other control must lost focus can any one help me in doing that ?
thanks in advanced

推荐答案

中表示感谢.这是事件的默认行为,它控制着触发事件的位置,如果要对事件进行任何特定的操作,请覆盖事件.如果仍然有任何疑问,请再次具体说明您所做的事情.您想要什么以及现在正在得到什么...谢谢...
It is the default behavour of the event and controls where it get fired, please override the events if you want any specific operation on event fired.. if still any query then please be specific again that what you done. what you want and what you are getting right now... thanks..


这篇关于将重点放回表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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