标签: c# tabcontrol
如何通过点击按钮事件更改当前标签?
public void btn_Click(object sender, EventArgs e) { //change tab here }
答案 0 :(得分:1)
tabCtrl.SelectedTab = desiredTab;
或
tabCtrl.SelectedIndex = desiredTabIndex;