标签控件 - 更改页面 [英] Tab control - Changing Page

查看:83
本文介绍了标签控件 - 更改页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表单上有一个Tab控件。


任何人都可以指导我如何将一些代码从一个页面切换到另一个页面。


我们可以轻松点击第1页,页面等,但我需要在每个页面上创建一个按钮以移动到下一页。


任何人都可以帮助


谢谢

I have a Tab control on my form.

Can anyone guide me how to wirte a little code to switch from one page to another.

We can easily click on Page 1, Page, and so on but i need to create a button on each page to move to the next page.

Can anyone help

Thanks

推荐答案


我的表单上有一个Tab控件。


任何人都可以指导我如何将一些代码从一个页面切换到另一个页面。


我们可以轻松点击第1页,页面,等等,但我需要在每个页面上创建一个按钮以移动到下一页。


任何人都可以帮助


谢谢
I have a Tab control on my form.

Can anyone guide me how to wirte a little code to switch from one page to another.

We can easily click on Page 1, Page, and so on but i need to create a button on each page to move to the next page.

Can anyone help

Thanks



刚玩过,发现这适用于TabStrip控件:

Just played around and that found this works for the TabStrip control:

展开 | 选择 | Wrap | 行号





谢谢


但是我的编译器给我这些错误:


SelectedItem

标签

这些方法不要似乎在我的VB版本中可用。


任何想法为什么我得到没有Sub或功能没有defind错误?

Hi

Thanks

But my compiler gives me error on these:

SelectedItem
Tabs
These methods dont seems to be available in my version of VB.

Any idea why i get "no Sub or Function not defind" error ?



刚玩过,发现这适用于TabStrip控件:
Just played around and that found this works for the TabStrip control:
展开 < span class =codeDivider> | 选择 | Wrap | Line数字






谢谢


但我的编译器给出了这些错误:


SelectedItem

标签

这些方法似乎不可用在我的VB版本中。


任何想法为什么我得到没有Sub或功能没有defind错误?
Hi

Thanks

But my compiler gives me error on these:

SelectedItem
Tabs
These methods dont seems to be available in my version of VB.

Any idea why i get "no Sub or Function not defind" error ?



它表示由于标签(WantedIndex)而未定义子/函数。它认为我在谈论一个我们还没有做过的子或功能。我实际上是在讨论数组Tabs(),它应该是TabStrip的一部分,但似乎数组也不存在,所以...


- 什么您使用的是VB版本吗?



- 单击选项卡对象时,在表单设计器的属性框中,是否显示OptionsTab TabStrip ;?

(用你命名的任何东西替换OptionsTab)

或者不是 TabStrip


因为,我在VB6中使用TabStrip控件。


如果它说 SSTab ,那就是Microsoft选项卡式对话框控件。设置选定的选项卡要容易得多:

It says sub/function not defined because of Tabs(WantedIndex). It thinks I''m talking about a sub or a function, which we haven''t yet made. I''m actually talking about the array Tabs() which should be part of the TabStrip, but it seems that array doesn''t exist either, so...

- What version of VB are you using?
and
- When you click on the tabs object, in the form designer, in ther properties box, does it say "OptionsTab TabStrip"?
(Replacing OptionsTab with whatever you named it)
Or does it not say TabStrip?

Because, I''m using the TabStrip control in VB6.

If it says SSTab, that''s the Microsoft Tabbed Dialog Control. That is much easier to set the selected tab of:

展开 | 选择 | Wrap | 行号


这篇关于标签控件 - 更改页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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