Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-11-2005, 07:15 PM   #1 (permalink)
In The Zone
 
Join Date: Oct 2004
Location: Ahmedabad, India
Posts: 210
Default MAKE YOUR OWN WEB BROWSER


Making a web browser is so simple. It consists of only a few lines of code they are so easy to make use. Let's start off with starting a new Visual Basic project, a standard exe.

Add the following controls onto your form:

. 5 command buttons
. 1 web browser
. a text box

Now what's left to do is put all the code into the commands, as you can see the text box is going to be where you put all of the website urls you want to visit, you could also use a combo box for this which is fine. The command buttons will do different things; the go button is used to go to the website you enter.

As you can see we have got a back button, a forward button, a refresh button a stop button, these are all the basic commands, you can add more as you get more comfortable with the commands.We can now add the code into the commands then you can take it further is you would like.Let's start off with the Form Load part, firstly we can set our default page for the browser when it loads up.

Rename your web browser to anything simple, I have renamed it to 'wb' because it's short and saves me writing out 'webbroswer1.' All of the time.

Private Sub Form_Load()
wb.Navigate \"http://www.softladinc.co.uk\"
End Sub

The code above will load our website into the web browser as soon as the application loads up.

Now put the following code in the buttons required:

Refresh Button

Private Sub Command5_Click()
wb.Refresh
End Sub

Stop Button

Private Sub Command3_Click()
wb.Stop
End Sub

Back Button

Private Sub Command1_Click()
wb.GoBack
End Sub

Forward Button

Private Sub Command2_Click()
wb.GoForward
End Sub

Go Button

Private Sub Command6_Click()
wb.Navigate Text1.Text
End Sub

Hope this tutorial helped you with the basics of making a web browser.
__________________
Ravi-the Sun
Think Bright,Think Sun

www.ravithesun.c-o.in My Blog
www.sunsoft.c-o.in My Web Home
ravimevcha is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 08-11-2005, 09:28 PM   #2 (permalink)
rk
Apprentice
 
Join Date: Aug 2004
Posts: 86
Default

good info
rk is offline  
Old 08-11-2005, 10:33 PM   #3 (permalink)
Banned
 
Join Date: Nov 2005
Posts: 58
Default Re: MAKE YOUR OWN WEB BROWSER

[quote="ravimevcha"]Making a web browser is so simple. It consists of only a few lines of code they are so easy to make use. Let's start off with starting a new Visual Basic project, a standard exe.

Add the following controls onto your form:

. 5 command buttons
. 1 web browser
. a text box

This is the secret.
it has done all
Milkshake is offline  
Old 08-11-2005, 10:51 PM   #4 (permalink)
Karthiksn
 
kato's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 422
Default

he meant that u need an web browser engine like IE engine or sumthing
__________________
"Walking the Path of Heaven, The Ruler of All."
kato is offline  
Old 09-11-2005, 01:24 PM   #5 (permalink)
In The Zone
 
Join Date: Sep 2004
Location: Delhi
Posts: 234
Default

good tutorial there.

Really useful for those who wanna make one
abhinav is offline  
Closed Thread

Bookmarks

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


 
Latest Threads
- by chris
- by icebags
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 01:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2