none
Rename tab - tab control RRS feed

  • Question

  • how in script i can rename a tab  ?

    i want a name of tab will be same as web which is navigated...

    Friday, May 19, 2017 12:17 PM

Answers

  • Hi friend,

    Any updated of this issue?

    You can also 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.

    Best regards,

    Fletch

     


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Saturday, May 27, 2017 6:14 AM

All replies

  • In order to get the title of WebBrowser control, see the DocumentTitle property. Then it can be assigned to Text property of tab page. You can also handle the DocumentTitleChanged event (can be subscribed programmatically).

    Or give details about your application.

    • Edited by Viorel_MVP Friday, May 19, 2017 3:38 PM
    • Proposed as answer by Fletch Zhou Tuesday, May 23, 2017 9:43 AM
    Friday, May 19, 2017 3:36 PM
  • Hi friend,

    Any updated of this issue?

    You can also 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.

    Best regards,

    Fletch

     


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Saturday, May 27, 2017 6:14 AM