how to change the name of the tabcontrol

前端 未结 3 1452
[愿得一人]
[愿得一人] 2021-02-05 01:53

I am using a Tab Control in a C# WinForms application. I want to change the title of the tabs. By default they are tabPage1, tabPage2, etc.

3条回答
  •  春和景丽
    2021-02-05 02:01

    tabCtrl.TabPages[0].Text = "some text";
    tabCtrl.TabPages[1].Text = "some other text";
    

提交回复
热议问题