Ok, So This Bit Is For The Tabbed Web-Browser.
This Is The Most Difficult Bit, But Because i Gibe You The Hole Code It Should Be Easy.
I Had To Gather Lots Of Bits From Differant Places.
Soon I Will Have Video Tutorials On Bohunt.Org Youtube Acount.
First Of Open Visual Basic. IM Gonna Start From Scratch Not Build On The Other One Because Its Easier That Way.
Then Add A Tab Control
4 Buttons
1 ComboBox
A Menu Strip
And If You Want A Status Strip.
On The Menu Strip Add A New Button Called "File" And Under That, Add 2 Call Them "New Tab" And "Close Tab"
Next You Can Arrange Them How You Want But This Is The Difficult Bit,
The Codeing.
On The New Tab Button Add This Code
Next Double Click On The Form And Put This Code
Next We Need To Code The Button This Is More Difficult Compared To The Basic WebBrowser Because It Is A Tab Control.
Any Way Double Click On The Go Button And Type This Code In:
For Close Tab It Is This Code:
And Put This Code:
Also Check Out The Youtube Acount For When I Have Got Some Video Tutorials Up.
Thanks,
HeuTeck
This Is The Most Difficult Bit, But Because i Gibe You The Hole Code It Should Be Easy.
I Had To Gather Lots Of Bits From Differant Places.
Soon I Will Have Video Tutorials On Bohunt.Org Youtube Acount.
First Of Open Visual Basic. IM Gonna Start From Scratch Not Build On The Other One Because Its Easier That Way.
Then Add A Tab Control
4 Buttons
1 ComboBox
A Menu Strip
And If You Want A Status Strip.
On The Menu Strip Add A New Button Called "File" And Under That, Add 2 Call Them "New Tab" And "Close Tab"
Next You Can Arrange Them How You Want But This Is The Difficult Bit,
The Codeing.
On The New Tab Button Add This Code
- Code:
Dim browse As New WebBrowser
TabControl1.TabPages.Add(i, "page " & i)
TabControl1.SelectTab(i - 1)
browse.Name = "New Tab"
browse.Dock = DockStyle.Fill
AddHandler browse.DocumentCompleted, AddressOf browse_done
TabControl1.SelectedTab.Controls.Add(browse)
i = i + 1
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
Next Double Click On The Form And Put This Code
- Code:
Dim browse As New WebBrowser
TabControl1.TabPages.Add(i, "page " & i)
TabControl1.SelectTab(i - 1)
browse.Name = "New Tab"
browse.Dock = DockStyle.Fill
AddHandler browse.DocumentCompleted, AddressOf browse_done
TabControl1.SelectedTab.Controls.Add(browse)
i = i + 1
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
Next We Need To Code The Button This Is More Difficult Compared To The Basic WebBrowser Because It Is A Tab Control.
Any Way Double Click On The Go Button And Type This Code In:
- Code:
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(ComboBox1.Text)
- Code:
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoBack()
- Code:
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).GoForward()
- Code:
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Refresh()
For Close Tab It Is This Code:
- Code:
TabControl1.TabPages.RemoveAt(TabControl1.SelectedIndex)
i = i - 1
And Put This Code:
- Code:
Me.close
Also Check Out The Youtube Acount For When I Have Got Some Video Tutorials Up.
Thanks,
HeuTeck