Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TUT] Create A WebBrowser + Pics [TUT]



Create Your Own WebBrowser In Vb.Net

What You'll Need :

1 Toolstrip + ToolStrip Controls, 1 WebBrowser.


Now lets begin the tutorial .

# First thing , drag a toolstrip from the toolbox onto the form. Make sure that the Grip Visibility is set to Hidden.

[IMG]http://i49.[censored].com/28kukqv.png[/IMG]

# Now we will add the controls. You will need:(6 ToolStripButtons, 1 ToolStripLabel, and 1 ToolStripTextBox).
Now we will set the names of the controls.
The first button will be called back, the second forward, the third refresh, the fourth stop, the fifth home and the last GO.
For the GO button set the alignement property to right. Now that you have the names we can set each of the button's DisplayStyle to Image.
Set the proper images for each button.
Now we will name the label and the textbox on the toolstrip.
For the Label set the text property to
Code
URL
and the name to urlLabel.
Now the textbox will be named url and the text leave blank.


# Next drag the WebBrowser Control onto the form.

[IMG]http://i50.[censored].com/11c9vti.png[/IMG]


Set the name property of the webbrowser to
Code
webBrowser


# Now for the coding.

Double-Click on the Form and enter this code:
Code
webBrowser.GoHome().
Double-Click on the Back Button and enter this code:
Code
webBrowser.GoBack().
Double-Click on the Forward Button and enter this code:
Code
webBrowser.GoForward().
Double-Click on the Refresh Button and enter this code:
Code
webBrowser.Refresh().
Double-Click on the Stop Button and enter this code:
Code
webBrowser.Stop().
Double-Click on the Home Button and enter this code:
Code
webBrowser.GoHome().
Double-Click on the GO Button and enter this code: webBrowser.Navigate(url.Text).[/code]
Double-Click on the webBrowser and enter this code:
Code
url.Text = e.Url.ToString().


# This is what your final design should look like.

[IMG]http://i46.[censored].com/ws1aja.png[/IMG]


Enjoy and Have fun by adding some more functions ✌



I know how To Do That!!
but Great Tutorial for Beginners
Thanks For Sharing it
(Dec 28, 2009 09:36 AM)The End Gamer Wrote:  but Great Tutorial for Beginners
Thanks For Sharing it

yeah it's for beginners , people with skill are going to add some more function , background etc ^^ .
This is a great tut for the beginner sad thing is its working on IE so its rlly slow xD i hope microsoft can put ther ego down and add firefox option or something 2.
Where can I download Toolstrip + Toolstrip controls?
(Dec 28, 2009 03:05 PM)1luv Wrote:  Where can I download Toolstrip + Toolstrip controls?
No Need To Download it
Just Open Toolbox And u'll find it
(Dec 28, 2009 03:05 PM)1luv Wrote:  Where can I download Toolstrip + Toolstrip controls?

You dont need to download them . They are already on your toolbox .
i love the tutorial




thanks mateeeeee
(Dec 29, 2009 06:16 AM)hemescool Wrote:  i love the tutorial




thanks mateeeeee


No problem ✌
Great tutorial for beginners..
[Image: nGihZvS.png]
(Dec 29, 2009 01:26 PM).:Novalok:. Wrote:  Great tutorial for beginners..

thanks ✌
Nice tutorial for beginners like me :P
thanks for sharing
ya i guess... but whats the point of your own web browser?
(Dec 30, 2009 04:00 PM)Doubts Wrote:  ya i guess... but whats the point of your own web browser?

doe someone asked to mozilla why creating firefox ??
Ah, I see I need to download vb software. Apoligies for my noobishness. I would +rep if I could. We need more TuT's like this!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Mike TylerSep 21, 2013 05:29 AM 6 314 Sep 21, 2013 05:29 AM
Last Post: ident
[Python] by ScrewbaccaAug 19, 2013 10:07 AM 27 758 Aug 19, 2013 10:07 AM
Last Post: T0ucaNSaM
[.NET] by aleeeeeeeJun 28, 2013 09:11 AM 1 98 Jun 28, 2013 09:11 AM
Last Post: Lambasoft