将焦点设置在子窗体的Tab上 [英] Setting the focus on a subform's Tab

查看:74
本文介绍了将焦点设置在子窗体的Tab上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过本论坛的几个问题解决了设置问题,但我觉得这很复杂,我需要一个taylormade答案。


我有一个标签主要形式叫做化合物。在其中一个标签上,名为Page75是一个名为RegistrationLaunchTogether的选项卡式子表单。其中一个标签名为Observations。如何在主窗体外部的此选项卡上设置焦点?

Setting focus is addressed through several questions on this forum but I find this so complicated that I need a taylormade answer.

I have a tabbed main form called "Compounds". On one of the tabs, called "Page75" is a tabbed subform called "RegistrationLaunchTogether" with one of its tabs called "Observations". How do I set the focus on this tab from outside the main form?

推荐答案


设置焦点通过几个在这个论坛上的问题,但我发现这很复杂,我需要一个taylormade答案。


我有一个标签主要形式称为化合物。在其中一个标签上,名为Page75是一个名为RegistrationLaunchTogether的选项卡式子表单。其中一个标签名为Observations。如何从主窗体外部的此选项卡上设置焦点?
Setting focus is addressed through several questions on this forum but I find this so complicated that I need a taylormade answer.

I have a tabbed main form called "Compounds". On one of the tabs, called "Page75" is a tabbed subform called "RegistrationLaunchTogether" with one of its tabs called "Observations". How do I set the focus on this tab from outside the main form?



Me。 SubformName .Form。 TabControlName .Pages(" PageName ")

Me.SubformName.Form.TabControlName.Pages("PageName")


也不应该提到主要形式吗?
Shouldn''t the main form be mentioned also?



设置焦点通过这个论坛上的几个问题来解决,但我发现这很复杂,我需要一个taylormade答案。


我有一个标签主要形式叫做化合物。在其中一个标签上,名为Page75是一个名为RegistrationLaunchTogether的选项卡式子表单。其中一个标签名为Observations。如何从主窗体外部的此选项卡上设置焦点?
Setting focus is addressed through several questions on this forum but I find this so complicated that I need a taylormade answer.

I have a tabbed main form called "Compounds". On one of the tabs, called "Page75" is a tabbed subform called "RegistrationLaunchTogether" with one of its tabs called "Observations". How do I set the focus on this tab from outside the main form?



以下代码将在Focus化合物表格的上下文之外将Focus设置为RegistrationLaunchTogether SubForm。它假定化合物上的选项卡控件名为TabControl。这就是我现在所有的时间:

The following code will Set Focus to the RegistrationLaunchTogether SubForm on Page 75 outside the context of the Compounds Form. It assumes the Tab Control on Compounds is named TabControl. This is all I had time for at the moment:

展开 | 选择 | Wrap | 行号


这篇关于将焦点设置在子窗体的Tab上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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