Site Statistics
 
Threads: 4,062
Posts: 17,767
Members: 3,098
Users Online: 7
Newest Member: Karen


Go Back   PC101 > Computer Related Forums > Software > Software Development

Software Development Programming / Databases = C & C++, SQL & PL/SQL, Java Help and more!


Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2005, 11:07 AM   #1
Sophomore
 
Join Date: Nov 2005
Posts: 135
Rep Power: 4 imported_krish is on a distinguished road
Making your own web browser in Visual Basic

Making your own web browser
An example of how to create your own simple web browsers with ease. This guide will start you off and hopefully you can try new things, add your own skin & more.

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



Now that's all the code I have shown examples for, if you want to add to your browser then go ahead, if you need more help on how to enhance it further then get in contact with us or visit our website. Hope this tutorial helped you with the basics of making a web browser.
imported_krish is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-07-2005, 01:20 AM   #2
Junior
 
Join Date: Dec 2005
Posts: 170
Rep Power: 3 cmpolis is on a distinguished road
Thanks, great tutorial. I like how its nice and simple.

-C
__________________

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

[
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
up to $20 By Posting on a computer forum![/url]

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
cmpolis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-17-2006, 01:01 PM   #3
Freshman
 
Join Date: Apr 2006
Posts: 1
Rep Power: 0 tropical is on a distinguished road
in VB 2005 express I have made a browser.
what i would like to do is replace the adress bar with buttons
e.g. site one , site two etc.
it seems like i could wire separete controls to each button but that seems rather clunky.
any one have ideas?
BTW i found this board googling this project
search term = "VB 2005 + go button + web browser"
tropical is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-05-2006, 07:10 PM   #4
Freshman
 
Join Date: Jun 2006
Posts: 29
Rep Power: 0 John is on a distinguished road
Ah I remember something similar from my days in A Level Computing. Those were very proud days, coming up with advanced scientific calculators, web browsers and text editers etc. Although they were nothing fancy, the ability to create something such as that with only a few hours programming behind us is a tribute to the flexibility, power and usability of Visual Basic.

I'll be sure to dig out my Visual Studio CD's and get back into it at some point, perhaps this tutorial will be my starting point!
John is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic to dotnet aruknow Software Development 0 11-24-2006 07:59 AM
Intoruction - Basic HTML crafterz Tutorials and How-To... 8 10-25-2006 10:51 PM
Some basic tips imported_krish Software 5 08-22-2006 01:06 AM
Making FireFox Real Faster !! dr911 PC & Tech Related News, Events and More! 3 04-15-2006 04:10 PM
Visual Basic john23 Software Development 5 03-24-2006 08:19 PM



All times are GMT -5. The time now is 08:44 AM.

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5