Go Back   Random Stuff Forums > Technical > Programming

Programming Discuss any type of programming here.

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 16-09-2007, 09:32 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default [TUT - VB 6] Simple Web Browser

This tutorial will teach you how to make a simple web browser using Microsoft Internet Controls.

Open up Visual Basic and select Standard EXE.

Next, go to Project -> Components. (Or you can Right click the toolbox and select Components.) A dialog box should appear.

Scroll down in the Dialog box to Microsoft HTML object Library and check the box next to it. Also put a check in the box next to Microsoft Internet Controls. Hit OK.

After you hit Ok you will see a little Earth appear in the Toolbox. Double Click it. Leave it named WebBrowser1. Make it bigger. I have mine set at 12975 for height and 15615 for width.

Now, add 6 Command Buttons. Name them cmdHome, cmdRefresh, cmdForward, cmdBack, cmdStop, and cmdGo. Also, change the captions to Home, Refresh, Forward, Back, Stop and Go.

Now add a combo box. Leave it's name as combo1. Change the caption to anything you wish.

Now it's time to add the codes.

Double click the Home command button and add the following code:

WebBrowser1.GoHome
The Home button will take you to whatever your homepage is set as in Internet Explorer.

Now for the others...

Refresh:
WebBrowser1.Refresh
Forward:
WebBrowser1.GoForward
Back:
WebBrowser1.GoBack
Stop:
WebBrowser1.Stop
Go:
WebBrowser1.Navigate Combo1
You can Also have it Navigate to any Webpage you wish when itis opened. To do this add:
Private Sub form_load()
WebBrowser1.Navigate ("www.urlhere.com")
End Sub
You can position these buttons wherever you like.

I hope you guys liked this very simple and easy to understand Tut on how to make a simple Web Browser. Please =Rep if it helped you.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays


Last edited by World Domination; 17-09-2007 at 04:34 PM..
Reply With Quote
  #2  
Old 16-09-2007, 09:35 PM
Zypur (Offline)
Guru
 
Join Date: Jan 2007
Posts: 3,857
Zypur is an unknown quantity at this point
Default

Great tutorial! Thanks Rawb!
__________________
"I can only show you the door, but you must walk through it."

<Reece>"Lol teh d00r, u need 2 go thru it k, n u betta cuz im a mod, k?"

A.K.A.Stefan!
Reply With Quote
  #3  
Old 16-09-2007, 10:15 PM
Speedster239's Avatar
Speedster239 (Offline)
Active Member
 
Join Date: Jul 2007
Location: The Internet
Posts: 271
Speedster239 is an unknown quantity at this point
Default

Nice tutorial .
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

My goal ^
Reached on Sunday, November 11th, 2007. Next skill to max out: Magic - 13.04 or 200mil fletch xp

I program PHP, Java and Vb.

MSN:
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
  #4  
Old 16-09-2007, 10:25 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default

Thanks Speedster.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays

Reply With Quote
  #5  
Old 17-09-2007, 03:46 PM
Kashif (Offline)
AKA kmalik
 
Join Date: May 2007
Location: Nintendo 64
Posts: 583
Kashif is an unknown quantity at this point
Default

Private Sub form_laod()
WebBrowser1.Navigate ("www.urlhere.com")
End Sub
spelled load wrong :P
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

My main goal for being at rsf is to become an offical mm
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
lol 80% of the people here are nerds.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Hahaha I love 12 year old black kids.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Reply With Quote
  #6  
Old 17-09-2007, 04:34 PM
World Domination's Avatar
(Offline)
Super Sexy Admin
 
Join Date: Jan 2007
Location: Illinois, USA
Posts: 7,384
World Domination is an unknown quantity at this point
Default

Originally Posted by kmalik View Post
Private Sub form_laod()
WebBrowser1.Navigate ("www.urlhere.com")
End Sub
spelled load wrong :P
Thanks for telling me. :wacky: Updated.
__________________
RSForums.org - We Don't give a fuck.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

"It's not yelling, it's projecting; and by the way, my voice is soothing."
-Billy Mays

Reply With Quote
  #7  
Old 17-09-2007, 10:23 PM
Nathan's Avatar
(Offline)
Owner
 
Join Date: Dec 2006
Location: Brisvegas, Australia
Posts: 2,646
Nathan is an unknown quantity at this point
Default

A+ Nice TUT
__________________


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Reply With Quote
  #8  
Old 17-09-2007, 10:55 PM
Eskimo Bob's Avatar
Eskimo Bob (Offline)
Guru
 
Join Date: Jan 2007
Location: ¿ Where do you live ?
Posts: 4,252
Eskimo Bob is an unknown quantity at this point
Default

Nice tutorial Robert
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
  #9  
Old 18-09-2007, 02:37 PM
Amit's Avatar
Amit (Offline)
Guru
 
Join Date: Jan 2007
Location: Pennsylvania
Posts: 2,660
Amit is an unknown quantity at this point
Default

Nice tutorial Robert.
Reply With Quote
  #10  
Old 20-09-2007, 11:08 PM
Pescados666's Avatar
(Offline)
Resident Drug Enthusiast
 
Join Date: Jun 2007
Location: Screwston
Posts: 2,732
Pescados666 is an unknown quantity at this point
Default

ah! my visual basic cant find the object library for internet controls! how do i fix this???
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 04:02 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright © 2006 - 2010, Rsforums.org