c# tabcontrol的tabpage怎么让他在点击button后切换到第二个tabpage

2024-12-16 10:39:49
推荐回答(2个)
回答1:

添加鼠标单击事件,满意的话请采纳
private void button1_Click(object sender, EventArgs e)
{
this.tabControl1.SelectedIndex = 1;
}

回答2:

添加鼠标单击事件,满意的话请采纳
private void button1_Click(object sender, EventArgs e)