Smile{TUT} Advanced WEBBROWSER

Posts 1–4 of 4 · Page 1 of 1
{TUT} Advanced WEBBROWSER
Ok well i just joined this forum and i am a mod on EVERY forum that im on for the VB section atm so il try to acchive that goal here to ok first tut were going to learn is a Advanced WebBrowser ok you can add me on aim its
***********199
or msn its
gcody25@hotmail.com

Ok well anyway this is in VB 2005/2008

Ok so first get your interface set up it should basicley have these things

Search,back,forward,home,refresh,Add tab,Delete Tab,Tab Control,shrtscuts (linklabels) and a shortcut manager Ok well when you got all that and you made it look nice now its time for the code
Ok so now double click on your Add Tab Button and type this

Dim w/e you want il just say browse
Dim browse As New WebBrowser
Dim i As Integer = 1
TabControl1.Tabpages.Add(i, "Page " & i)
TabControl1.SelectTab(i - 1)
browse.Name = "Name Here"
browse.Dock = Dockstyle.Fill
TabControl1.SelectedTab.Controls.Add(browse)
i = i + 1


So when you have that just copy/paste it in form load ok so you have it on add tab and form load now ill tell you what it meens
Dim browse As New WebBrowser meen that your declaring "browse" as the new webBrowser
Dim i as integer = 1 meens your declaring i as a integer and it equals 1
TabControl1.Tabpages.Add(i, "page " & i) meens that your going to the tabpages of tabcontrol and adding one every time you hit it
and the rest are pretty self explainatory now your time for your delete tab

Double click on it and type

TabControl1.Tabpages.RemoveAT(TabControl1.Selected Index)
TabControl1.SelectTab(TabControl1.TabPages.Count - 1)
i = i - 1

And thats pretty explainatory ok well thats it for writeing lol

Il make the 2nd half of the tut in about 30 mins
good tut! although it is really for beginners...
Ty, maybe u could use more spaces cuz its hard to read
I dont get it, it always gives me an error on TabControl1? Says its undeclared
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us