'How do i change the easy tabs page title to webBrowser1.DocumentTitle?

This is what it should look like: enter image description here

This is what it should look like 2nd Picture: enter image description here

Program.cs

using EasyTabs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Luke_Browser_Beta_Retry_2
{
    static class Program
    {
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        AppContainer container = new AppContainer();
        container.Tabs.Add(
            new TitleBarTab(container)
            {
                Content = new frmBrowser
                {
                    Text = "New Tab"
                }
            }
            );
        container.SelectedTabIndex = 0;

        TitleBarTabsApplicationContext applicationContext = new TitleBarTabsApplicationContext();
        applicationContext.Start(container);
        Application.Run(applicationContext);
        }
    }
}

Heres my attempt

Content.Text = webBrowser1.DocumentTitle + | + New Tab;

So someone pls help me fix this I wanna make a really cool browser!



Solution 1:[1]

I think you need to put the | and New Tab inside double quotes in order for it to work, since they are both strings.

Both of those strings should also be a single string, so that it's more readable.

The above should be:

Content.Text = webBrowser1.DocumentTitle + "|New Tab";

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Zachary Rude