光标没有聚焦在Textbox Vb.net Windows应用程序中 [英] Cursor Not Focusing in Textbox Vb.net Windows Application

查看:250
本文介绍了光标没有聚焦在Textbox Vb.net Windows应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在MDI表格中,儿童表格在面板中打开。



In子窗体,光标没有聚焦在文本框中文本的中间。



示例:



MDIFORM = => PANEL ==>儿童形式==> TEXTBOX。





问候

Rajesh V

解决方案

在子窗体加载事件中,要将光标放在文本框中,请执行以下方法:



 textbox1.Focus( )


MdiForm中的childformName.Textbox.focus()


您可以在特定页面上设置标签排序为默认值专注于特定的控制

或者可以按照以下方法记录...





  .Show()
Application.DoEvents()
TextBox1.Focus()


Hi,

In MDI Form, the Child Form open with in Panel.

In Child Form, cursor not focusing in middle of the text in textbox.

Example :

MDIFORM ==> PANEL ==> CHILD FORM ==> TEXTBOX.


Regards
Rajesh V

解决方案

In the Child Form Load event, to put the cursor in a textbox, execute the following method:

textbox1.Focus()


childformName.Textbox.focus() in MdiForm


You can set tab ordering on the particular page for default focus on particular control
or may follow the following methodlogy...


Me.Show()
   Application.DoEvents()
   TextBox1.Focus()


这篇关于光标没有聚焦在Textbox Vb.net Windows应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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