Category / Section
How to add new line character in the text property of TabPageAdv for wrapping the text in WinForms TabControlAdv?
1 min read
Adding new line character in text
Setting the MultilineText property of TabControlAdv to 'true' will wrap the text when using the new line character(\n) in the text property of TabPageAdv.
C#
//Setting the Multiline Text property in TabControlAdv this.tabControlAdv1.MultilineText = true; //Entering text into the text property of TabPageAdv this.tabPageAdv1.Text = "Tab\nPage1"; this.tabPageAdv2.Text = "Tab\nPage2"; this.tabPageAdv3.Text = "Tab\nPage3";
VB
'Setting the Multiline Text property in TabControlAdv Me.tabControlAdv1.MultilineText = True 'Entering text into the text property of TabPageAdv Me.tabPageAdv1.Text = "Tab\nPage1" Me.tabPageAdv2.Text = "Tab\nPage2" Me.tabPageAdv3.Text = "Tab\nPage3"