Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Visual Basic / VB:
How to make a custom web browser.

 

 


Athlon XP
Veteran


Jul 3, 2005, 1:18 PM

Post #1 of 8 (559 views)
Shortcut
How to make a custom web browser. Can't Post

The first thing you want to do is expand the form box as large as you can get it. I mean BIG.

Next, right-click the toolbox and click Components. Scroll down to Microsoft Internet Controls, check it, and click OK.

Find the little Earth button that appeared on the toolbox and place it on the form. Expand it so it fills all but a thin area on the top of the form.

On the top that's not filled by our browser window, put a long textbox and a button. Label the button "Go," then double-click it to open the code editor. Type this line of code:

WebBrowser1.Navigate Text1.Text

Your browser now works, but you will notice that if you resize the form window, the browser view does not change. This is why I wanted you to make it so big. To edit this so that the browser view resizes as well, double-click on the form and type this code in the appropriate section:

Private Sub Form_Resize()
WebBrowser1.Top = Text1.Height
WebBrowser1.Width = Form1.ScaleWidth
WebBrowser1.Height = Form1. ScaleHeight
Text1. Height

And the line "End Sub" should be directly below. Voila. You authored a browser, but I find it painful without a Back button. Too bad I don't know how to do that.


Lord I was born a shamblin' man
Archives (Newest Addition: The Judgment of Tate's Father)



Jakestah
Veteran


Jul 4, 2005, 10:54 AM

Post #2 of 8 (552 views)
Shortcut
Re: [Athlon XP] How to make a custom web browser. [In reply to] Can't Post

Nice little tutorial. Too bad they are IE based, I wan't to find a control thing for netscape.


Athlon XP
Veteran


Jul 4, 2005, 1:13 PM

Post #3 of 8 (551 views)
Shortcut
Re: [Jakestah] How to make a custom web browser. [In reply to] Can't Post


In Reply To
netscape.


*crosses self*


Lord I was born a shamblin' man
Archives (Newest Addition: The Judgment of Tate's Father)


Jakestah
Veteran


Jul 5, 2005, 12:33 AM

Post #4 of 8 (548 views)
Shortcut
Re: [Athlon XP] How to make a custom web browser. [In reply to] Can't Post

You don't like netscape? Maybe somewthing Mozilla would be cool too but is't Moxilla NEtscape bassed?


Athlon XP
Veteran


Jul 5, 2005, 1:55 PM

Post #5 of 8 (546 views)
Shortcut
Re: [Jakestah] How to make a custom web browser. [In reply to] Can't Post

Netscape had a "brother" named Mozilla, and Mozilla begat Firefox, and Internet Explorer trembled in fear.

Yeah I guess so.


Lord I was born a shamblin' man
Archives (Newest Addition: The Judgment of Tate's Father)


Katiuscee
Newbie


Jul 5, 2005, 2:09 PM

Post #6 of 8 (544 views)
Shortcut
Re: [Athlon XP] How to make a custom web browser. [In reply to] Can't Post

I don't like IE.


Cruel__Machine
Senior Member


Jul 5, 2005, 5:18 PM

Post #7 of 8 (540 views)
Shortcut
Re: [Katiuscee] How to make a custom web browser. [In reply to] Can't Post

Pfft... netscape... Wink

You can substitute the IE control with the mozilla control which I believe has most of the same subs and procedures. http://www.iol.ie/~locka/mozilla/control.htm

And not does it work for VB, but it also is compatible with C++ and Delphi. And I believe it's open source.

Have fun children...


EOP
___________________________
"If evolution were true, I'd have a self-lubricating hand."

Programmers: http://Cruels.net


robinx
Enthusiast


Aug 1, 2005, 1:17 AM

Post #8 of 8 (469 views)
Shortcut
i like IE [In reply to] Can't Post

i like IE

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.17 s on (CGI/1.1)