我项目中的TabControl [英] TabControl in my Project

查看:78
本文介绍了我项目中的TabControl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的winForm项目Tabcontrol中,我有一个带有6个TabPage和两个Button的Tabcontrol.
第一个按钮"Next"和另一个按钮"Back".
当我单击下一步"时,我想转到下一个TabPage,当我单击上一步"时,我要转到上一个TabPage.
我该怎么办??

否:MS Access 2007中的同一报表向导.

In my winForm project Tabcontrol I have a Tabcontrol with 6 TabPages and two Buttons.
The First Button ''Next'' and another Button ''Back''.
When I click ''Next'' I want to go to next TabPage, when I click Back I want to go to the previous TabPage.
How can I do that???

Not : The Same Report Wizard in MS Access 2007.

推荐答案

使用 ^ ]属性:如果增加或减少它,则将移至下一页或上一页.记得要检查一下您是否仍然在页面数内!
Use the TabControl.SelectedIndex[^] property: If you increase or decrease it, you will move to next or previous pages. remember to check you are still within the page count though!


您可能想重新访问UI设计.用户只需单击选项卡页标题即可完成此操作.
You may want to revisit your UI design. User can do this just by clicking the tab page header.


这篇关于我项目中的TabControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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