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.
(Collection)
.tabPage
properties associated with it. You can change it pretty simply in the designer; click on a blank area in the tab page contents and use the property view to set the Text
property. Also through code via:
tabPage1.Text = @"Something Meaningful";
Where tabPage1
would be the reference to whichever TabPage
you wanted to set the Text
of.
tabCtrl.TabPages[0].Text = "some text";
tabCtrl.TabPages[1].Text = "some other text";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With