feedburner
Enter your email address:

Delivered by FeedBurner

feedburner count

Web Browser

Labels:

The tutorial will show you how to create a your main Web Browser in Visual Basic 6.0. Select STANDARD .EXE . Go to Project ~> Components...  and select Microsoft Internet Controls. Make 5 Command Buttons , Microsoft Internet Controls (WebBrowser) and textbox. Like me. You done with design lets write code.

Private Sub Command1_Click()
On Error GoTo a
WebBrowser1.GoBack
'Go Back
a:
End Sub


Private Sub Command2_Click()
On Error GoTo b
WebBrowser1.GoForward
'Go forward.
b:
End Sub


Private Sub Command3_Click()
On Error GoTo c
WebBrowser1.Refresh
'Refresh command
c:
End Sub


Private Sub Command4_Click()
On Error GoTo d
WebBrowser1.Stop
'stops the browsing (stop reading from page)
d:
End Sub
Private Sub Command5_Click()
On Error GoTo e
WebBrowser1.Navigate (Text1.Text)
'text1.text is a url . example : facebook.com
e:
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
'This changes the text box's text into what URL that you're currently at.
End Sub

You done. Test it . Make .exe and u are done! :)
If u have any questions , suggestions, if u find a bugs or something else just comment!




0 comments:

Post a Comment