开发者

CSharp: How to goto next tab by pressing a button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜