如何将焦点从一个子表单设置为另一个子表单? [英] How do I set focus from one subform to another?

查看:84
本文介绍了如何将焦点从一个子表单设置为另一个子表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将焦点从一个子窗体设置为另一个子窗体上的控件,该子窗体位于同一父窗体上。目前我有:

I''m trying to set the focus from one subform to a control on another subform that is on the same parent form. Currently I have:

展开 | 选择 | Wrap | 行号

推荐答案

你不提及页面或标签,但我不相信答案会改变,即使你这样做。


假设一个表格有两个子表格,然后在第一个子表单中运行的代码可能会尝试类似:

You don''t mention pages or tabs, but I don''t believe the answer changes even if you do.

Assuming a form with two subforms then, and the code running in the first subform you might try something like :

展开 | 选择 | Wrap | 行号


两个子表单都在选项卡上,但它们位于同一选项卡上。但是,就像你说的那样,我认为不应该改变任何东西。我应该提到这是我的OP。


我将在周一回来工作时尝试一下。
Both subforms are on tabs, but they are on the same tab. However, like you said, I don''t think that that should change anything. I should have mentioned this is my OP.

I will give that a try on Monday when I get back to work.


酷。让我们知道怎么回事。我没有任何测试,所以我从理论上发帖; - )
Cool. Let us know how it goes. I don''t have any to test on so I''m posting from theory ;-)


这篇关于如何将焦点从一个子表单设置为另一个子表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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