Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过单击按钮事件更改当前选项卡?
public void btn_Click(object sender, EventArgs e) { //change tab here }
tabCtrl.SelectedTab = desiredTab;
或者
tabCtrl.SelectedIndex = desiredTabIndex;