paoloTheCool

Is there a way to add tabs to a Tabbed Web Browser I have tried with other codes from threads on this Forum, but to no avail :(,

my web browser is called "webBrowser1" and my Tab Control is called "tabControl1"

thanks,

paoloTheCool



Re: Visual C# Express Edition Visual C# WebBrowser with Tabs

Figo Fei - MSFT

Hi,

You can just add multiple webbrowsers to a tabcontrol (one tabpage add single webbrowser)

            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);

            this.tabPage1.Controls.Add(this.webBrowser1); this.tabPage2.Controls.Add(this.webBrowser2);

If you have further problems, pls feel free to let me know.

Thanks






Re: Visual C# Express Edition Visual C# WebBrowser with Tabs

paoloTheCool

Is there a way to set presets for example, when i use that code to create another tabpage and another webBrowser, I would also like to set presets, like Anchor = Top, Bottom, Left, Right, and I would also like the webBrowser object to have Events like progress_changed and document_completet, etc.

thanks,

paoloTheCool





Re: Visual C# Express Edition Visual C# WebBrowser with Tabs

Figo Fei - MSFT

Hi,

You can set the webbrowser's dock property to DockStyle.Fill.

And you can a lot of things, search in this forum and you can see a lot of implementation have be done.

Thanks






Re: Visual C# Express Edition Visual C# WebBrowser with Tabs

paoloTheCool

I'm still having trouble with a webBrowser with tabs. I can't figure out how to aceess the webBrowser once its created.

Thanks,

paoloTheCool





Re: Visual C# Express Edition Visual C# WebBrowser with Tabs

Figo Fei - MSFT

Hi, PaoloTheCool

webBrowser added to the tab is regarded as one of the controls in the form, where you add it there you can access it.

You may first get clear image of the architecture of your classes.

Begin read at access modifier may help.

Thanks