Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Web browser is not added to new tab page when added. and
VB
----------------------------------------------
Syntax for adding tab pages:
----------------------------------------------
dim i as integer=1
dim browser as new Webbrowser
 TabControl1.TabPages.Add(1, "    Untitled Page    " & i)
        TabControl1.SelectTab(1 - 1)
        browser.Name = "Foxpro Internet"
        browser.Dock = DockStyle.Fill
        TabControl1.SelectedTab.Controls.Add(browser)
        TextBox1.Text = ""
        i = i + 1
----------------------------------------------

And why "+you" option is not coming in web browser.
Posted
Updated 22-Dec-11 19:37pm
v2

1 solution

Try
VB
Dim browserTab As New TabPage("Browser Tab")

Dim browser As New WebBrowser()
browser.Name = "Foxpro Internet"
browser.Dock = DockStyle.Fill

browserTab.Controls.Add(browser)
TabControl1.TabPages.Add(browserTab)

TabControl1.SelectedIndex = 0
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900