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,
Then make one textbox ( You need it to type the URL )
And then make one WebBrowser if you cant find it right click on left toolbar click components
And find Microsoft Internet Controls, click on it and click ok
Then on the left toolbar new icon will appear add it to the project make it big.
And the last bit. The code:
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![]()
Last edited by ViRuSS; 09-01-2008 at 05:20 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![]()
i wos kinda in a hurry but
ill make better one later
Not bad, a little short. +rep.
thx it is little short but you can make it in 2 min's
I didn't write here anything this is Illusion
What are you going to do with that empty blog? Can you unpublish it if you are not going to use it?
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
I didn't write here anything this is Illusion
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!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks