Jump to content




Recent Status Updates

  • Photo
      30 Sep
    rhossis

    laptop hard disk seated beneath motherboard but with no access panel. 7 hours to replace :(

    Show comments (3)
  • Photo
      19 Sep
    Chall

    I love it when you go to write a help thread, then while writing, you reach an enlightenment, and figure it out yourself.

    Show comments (3)
View All Updates

Developed by Kemal Taskin
Photo
- - - - -

How To Make Easy Web Browser in VB6!

Visual Basic 4 / 5 / 6

  • Please log in to reply
41 replies to this topic

#1 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 31 August 2008 - 07:46 AM

Im going to show you how to make an easy Web Browser in Visual Basic 6

Basically what you will need is:

4 CommandButtons change their caption to Go, Back, Forward and Refresh
and name them cmdGo, cmdBack, cmdForward and cmdRefresh,

Posted Image

Then make one textbox ( You need it to type the URL )

Posted Image

And then make one WebBrowser if you cant find it right click on left toolbar click components
Posted Image

And find Microsoft Internet Controls, click on it and click ok

Posted Image


Then on the left toolbar new icon will appear add it to the project make it big.

Posted Image

And the last bit. The code:
Private Sub cmdgo_Click()
WebBrowser1.Navigate (Text1.Text)
End Sub
Private Sub cmdback_Click()
WebBrowser1.GoBack
End Sub
Private Sub Cmdforward_Click()
WebBrowser1.GoForward
End Sub
Private Sub cmdrefresh_Click()
WebBrowser1.Refresh
End Sub
Private Sub Form_Load()
WebBrowser1.Navigate ("http://www.google.com")
End Sub
Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
Text1.Text = (WebBrowser1.LocationURL)
Form1.Caption = (WebBrowser1.LocationName)
End Sub


Thats the code.
Ummm. You can customize your own like put images and change the text, font....

And dont forget to save it as .EXE

Thats it your done you have your own Web Browser!

If you liked it +rep me :D

Edited by ViRuSS, 01 September 2008 - 04:20 AM.

  • 3

#2 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3,033 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 31 August 2008 - 07:53 AM

Perhaps you could have used code tags to make it look neater, and used some screenshots to show where to find the different controls, and how to find the web browser component.

Nice though :D
  • 0

#3 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 31 August 2008 - 07:55 AM

i wos kinda in a hurry but
ill make better one later
  • 1

#4 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8,356 posts

Posted 31 August 2008 - 09:28 AM

Please use CODE tags. +rep
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#5 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 01 September 2008 - 04:22 AM

Perhaps you could have used code tags to make it look neater, and used some screenshots to show where to find the different controls, and how to find the web browser component.



Is it better Now? If it is +rep me :)
  • 0
I didn't write here anything this is Illusion

#6 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 01 September 2008 - 05:17 AM

Not bad, a little short. +rep.
  • 0

#7 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 01 September 2008 - 05:55 AM

thx it is little short but you can make it in 2 min's
  • 0
I didn't write here anything this is Illusion

#8 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 01 September 2008 - 06:04 AM

What are you going to do with that empty blog? Can you unpublish it if you are not going to use it?
  • 0

#9 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 01 September 2008 - 06:07 AM

yeah i will lol that blog was mistake i wanted to make new threat but i make new blog
and i forgot to delete it
  • 0
I didn't write here anything this is Illusion

#10 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 01 September 2008 - 06:15 AM

No problem. I got a bit excited because I thought we had a new blogger, but alas, we don't :(. If you change your mind, feel free to blog!
  • 0

#11 ViRuSS

ViRuSS

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 70 posts

Posted 01 September 2008 - 06:16 AM

i will but i want to delete this blog but i dont know how
lol any help? :confused:
  • 0
I didn't write here anything this is Illusion

#12 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 01 September 2008 - 06:21 AM

When you go here: http://blog.codecall.net/write/

You will see a list of all the blog entries you have made. Beside the entries there is Edit and Delete. Click the Delete link.
  • 0





Also tagged with one or more of these keywords: Visual Basic 4 / 5 / 6