更改标签页 [英] change the tab page

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

问题描述

你好,
我想问一下标签控制.我做了一个按钮和一个具有2个标签页的标签控件.我想如果我单击按钮,则第一个标签页转到第二个标签页.

hello,
i want to ask about tab control. i made a button and a tab control that had 2 tab page. i want if i click the button, the first tab page go to the second tab page. how to make it???

推荐答案

我相信您必须将tabControl.SelectedIndex设置为要激活的选项卡的索引.
I believe you have to set tabControl.SelectedIndex to the index of the tab you want to activate.


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

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