我项目中的TabControl

编程入门 行业动态 更新时间:2024-10-26 02:32:04
本文介绍了我项目中的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.

推荐答案

使用 TabControl.SelectedIndex [ ^ ]属性:如果增加或减少它,则将移至下一页或上一页.记得要检查一下您是否仍然在页面数内! 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

本文发布于:2023-07-25 09:09:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1209004.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   TabControl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!