1 Replies - 206 Views - Last Post: 14 October 2019 - 05:14 PM Rate Topic: -----

#1 bnptrs   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 14-October 19

EasyTab that display's web browser document title Winforms

Posted 14 October 2019 - 03:36 PM

I am basically trying to make a fully featured web browser, with the favicon of cefsharp webpage showing as the form icon. I am also trying to get the title of the current cefsharp webpage on this EasyTabs tabcontrol.

I try to change this:
[public partial class AppContainer : TitleBarTabs
{
    public AppContainer()
    {
        InitializeComponent();

        AeroPeekEnabled = true;
        TabRenderer = new ChromeTabRenderer(this);
    }

    // Handle the method CreateTab that allows the user to create a new Tab
    // on your app when clicking
    public override TitleBarTab CreateTab()
    {
        return new TitleBarTab(this)
        {
            // The content will be an instance of another Form
            // In our example, we will create a new instance of the Form1
            Content = new Form1
            {
                Text = "New Tab"
            }
        };
    } ]



To

[public partial class AppContainer : TitleBarTabs
{
    public AppContainer()
    {
        InitializeComponent();

        AeroPeekEnabled = true;
        TabRenderer = new ChromeTabRenderer(this);
    }

    // Handle the method CreateTab that allows the user to create a new Tab
    // on your app when clicking
    public override TitleBarTab CreateTab()
    {
        return new TitleBarTab(this)
        {
            // The content will be an instance of another Form
            // In our example, we will create a new instance of the Form1
            Content = new Form1
            {
                Text = //Cefsharps current webpage title.
            }
        };
    }  ]

:code:
But I dont know how to. When I try, it says that my browser is not accessible from there. (there is two forms one containing the controls to go in the tabs... The other containing the tabs, which is the code I am trying to change.)

This post has been edited by modi123_1: 14 October 2019 - 03:42 PM
Reason for edit:: In the future please use the [code] tag button in the editor


Is This A Good Question/Topic? 0
  • +

Replies To: EasyTab that display's web browser document title Winforms

#2 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 7139
  • View blog
  • Posts: 24,248
  • Joined: 05-May 12

Re: EasyTab that display's web browser document title Winforms

Posted 14 October 2019 - 05:14 PM

Please post the exact error that you are seeing. Don't paraphrase or summarize. Copy and paste the error from the error tab. Please don't use a screenshot.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1