1.Now Open VB
2.Now create a new form Application > Name It > Press OK!
3.Make the form as big as you want
4.Add a webbrowser to it (Webbrower is in the tools place).
5.Now add 5 buuton on the form (where ever you want it).
6.Rename them to:
Button 1ack
Button 2:Forward
Button 3top
Button 4:Refresh
Button 5:Home
7.Now add these codes into the buttons:
Back:
Forward:Code:webbrowser1.goback
Stop:Code:webbrowser1.goforward
Refresh:Code:webbrowser1.stop
Home:Code:webbrowser1.refresh
8.Now add 1 textbox and 1 more Button.Code:webbrowser1.gohome
Put the textbox and button next to each other.
Rename the Button you just added to Search and add this Code:
IF YOU DON'T WANT IT ADVANCED YOU CAN STOP HERE!Code:Webbrowser1.Navigate(Textbox1.text)
9.Go to toolbar and select status strip.
Add two things in your status strip:
Progress
Label
10.Where it says ToolStripStatusLabel1
rename the text so it says Done.
Then make it as visible = false
same for the progress bar
11.Double click on your webbrowser and add this code :
Original : Chimmy.Org - View topic - [Visual Basic .NET] Web browser BeginnerCode:With ProgressBar1 .Minimum = 1 .Maximum = 10000 .Value = 1 .Step = 1 ProgressBar1.Visible = True For i As Integer = .Minimum To .Maximum .PerformStep() Next i End With If WebBrowser1.ReadyState Then ProgressBar1.Visible = False End If If ProgressBar1.Value = 10000 Then ToolStripStatusLabel1 = True
Results 1 to 1 of 1
- 22 Nov. 2009 09:58pm #1
[Visual Basic .NET] Web browser Beginner