开发者

CSharp: How to goto next tab by pressing a button

开发者 https://www.devze.com 2023-02-07 15:00 出处:网络
What would be the algorithm to make 开发者_如何学Pythonit so upon pressing a button inside the first tab of a tab control so that you get switched to second tab.private void button1_Click(object sende

What would be the algorithm to make 开发者_如何学Pythonit so upon pressing a button inside the first tab of a tab control so that you get switched to second tab.


    private void button1_Click(object sender, EventArgs e) {
        tabControl1.SelectedIndex = 1;
    }


this.tabControl1.SelectedTab = tabPage2/*needed tab*/;
0

精彩评论

暂无评论...
验证码 换一张
取 消