PDA

View Full Version : [TuT + Video] How to make a WebBrowser for Newbies



Legendary Cookie
01-23-2009, 09:04 AM
Note: This is my first tuturial at DXT.


How to make a WebBrowser for Newbies

Video Tut at here:
http://www.ziddu.com/download/2161003/WebBrowserTut.wmv.html

Text Tuturial

1- Add a Text Box
2- Add a button
3- Add a WebBrowser control
4- Click on the button and put this code:


WebBrowser1.Navigate (TextBox1.Text)

How to make a homepage to your browser ?
RE: Double click on the form and add this code


WebBrowser1.Navigate ("http://www.thewebsiteyouwant.com/")

How to add backward and forward ?
RE:
Backward:


WebBrowser1.GoBack

Forward:


WebBrowser1.GoForward

How to open internet explorer homepage with a button ?
RE:


WebBrowser1.GoHome

How to update textbox with the current website url ?
RE:


Me.TextBox1.Text = WebBrowser1.Url.ToString

Credits: Legendary Cookie (me)

Post comments or bugs that you found.

BlazingHawk
01-23-2009, 09:54 AM
u mean like a web browse like google?

Durrcookie
01-23-2009, 10:03 AM
u mean like a web browse like google?

No like internet explorer or mozilla, though this isnt really your "own"webbrowser it uses the internet explorer functions =P

Legendary Cookie
01-23-2009, 10:22 AM
No like internet explorer or mozilla, though this isnt really your "own"webbrowser it uses the internet explorer functions =P

Yeah it uses internet explorer but it's nice to have our own browser :p

Firesnipe
01-23-2009, 02:39 PM
This is nice. Maybe you can show us how to get fancy with it. Thanks/Thanked!

Programmer
02-05-2009, 10:09 PM
Just a little bit of help instead of using one page use tab pages.. to make your own tabs Code is simple for experts like me but here it is
Form

Dim i as integer = 1

Form load

Dim browse as new webbrowser
tabcontrol1.tabpages(i-1)
browse.name = "Name"
browse.Dock = Dockstyle.fill
TabControl1.Selectedtab.controls.add(browse)
i = i + 1

add that to add tab button and form load then add a delete tab button and put
tabcontrol1.tabpages.removeat(tabcontrol1.selected index)
tabcontrol1.selecttab(tabcontrol1.tabpages.count - 1)
i = i - 1

then like for home and stuff it would be

Ctype(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(TextBox1.Text)
Ctype(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Goback

You get the point

From:
Programmer (VbExpert)

macd0s
03-02-2009, 10:24 AM
how can i access the tags

like getElementById('value').value

and edit


getElementById('value).innerHTML = "testing"


using webbrowser

Durrcookie
03-02-2009, 12:36 PM
how can i access the tags

like getElementById('value').value

and edit


getElementById('value).innerHTML = "testing"


using webbrowser

Whachu mean by the tags?

[PGH]iOwnage
09-06-2009, 04:10 AM
Thanks, this helped me ^^