从旧表格导航到新表格时,光标会保留在旧屏幕上 [英] Curser remains on old screen while Navigate from old form to new form
本文介绍了从旧表格导航到新表格时,光标会保留在旧屏幕上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我正尝试从一种形式导航到另一种形式,以简而言之,我有购买账单形式...当我打开此形式时,我的焦点设置为聚会名称组合框...当我按f3时.被打开.执行此操作时,仅当我要在帐户主表单上设置焦点时,焦点才设置为组合框...如何执行此操作.
请帮助.
Hello,
I am trying to navigate from one form to another,in breif i have Purchase bill form ...while i open this form my focus is set to party name combo box...when i press f3.. a new form for account master is get opened.While doing this the focus is set to combobox only while i want to set it on account master form...how to do this.
pls help.
推荐答案
使用 Select() [ ^ ]或焦点() [
Use Select()[^] or Focus()[^] method to set the input focus where you want.
假设您在主表单上有一个名为txtBox的控件.在表单的OnLoad
事件中,尝试执行以下操作:
txtBox.Focus();
Lets say you have a control on the master form called txtBox. In theOnLoad
event of the form try something like this:
txtBox.Focus();
这篇关于从旧表格导航到新表格时,光标会保留在旧屏幕上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文