Joined: 20 Aug 2008 Posts: 66 Location: Kiwi Plantation
Posted: Thu Sep 04, 2008 12:49 pm Post subject: Make Web Browser in VB6 (well explained)
1. Open your VB6
2. Start Standard.exe
3. Press CTR+T
4. Select "Microsoft Internet Controls" and click "Apply"
5. On the left you will see a small Globe, stretch it on your form
6. Create 4 buttons and 1 Text Box
7. Name the buttons like this:
CmdBack-Back
CmdForward-Forward
CmdRefresh-Refresh
CmdSearch-Search
Text1-nothing
BACK
Private Sub CmdBack_Click()
WebBrowser1.GoBack
End Sub
Code:
FORWARD
Private Sub CmdForward_Click()
WebBrowser1.GoForward
End Sub
Code:
REFRESH
Private Sub CmdRefresh_Click()
WebBrowser1.Refresh
End Sub
Code:
SEARCH
Private Sub CmdSearch_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub
Code:
URL UR AT CURRENTLY
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
End Sub
Code:
HOME PAGE
Private Sub Form_Load()
WebBrowser1.Navigate ("YOUR HOMEPAGE")
End Sub
IF YOU WANT TO HAVE BUTTONS (favourites) CONTINUE
9. Create 1 more button
CmdRunescape-Runescape
(you can change Runescape into something else just stay "Cmd"
10. Double click that button and add the following code
Code:
RUNESCAPE
Private Sub CmdGoogle_Click()
WebBrowser1.Navigate ("http://www.runescape.com")
End Sub
You can add as many favourites as you want (just change "*")
11. Click File-->Make Project1.exe-->Save
If any questions PM me.
REP+ Appriciate (to be my first REP+)
The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum