我怎么知道现在的焦点在使用VB.net的文本框中 [英] How will I know that the focus now is in a text box using VB.net

查看:112
本文介绍了我怎么知道现在的焦点在使用VB.net的文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能告诉我,如何获得焦点(无论是否在文本框中)?

谢谢.

Hi guys,

Can anyone tell me, how to get the focus point, if it is in a textbox or not?

Thank you.

推荐答案

您可以检查

You can check

Me.ActiveControl 



是您的表单.



of your form.


是的,谢谢您,但是我的意思是..就是如何将其从程序中删除..我的意思是用户现在所在的位置打字..如何确定??我的意思是..如果他在文本框或URL区域中书写..

..........:)
Yes my friend , thank you for this , But i exactly mean .. is that how to get it out side of my program .. I mean where the User now is typing .. how to determine that ?? i mean .. if he is writing in text box or URL area ..

.......... :)


这篇关于我怎么知道现在的焦点在使用VB.net的文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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