Hack Forums
[.NET] [TUT] Create A WebBrowser + Pics [TUT] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [TUT] Create A WebBrowser + Pics [TUT] (/showthread.php?tid=217081)

Pages: Pages 1 2 3


[TUT] Create A WebBrowser + Pics [TUT] - [ Process.xSs ] - Dec 28, 2009



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 ✌






* - The End Gamer - Dec 28, 2009

I know how To Do That!!
but Great Tutorial for Beginners
Thanks For Sharing it


* - [ Process.xSs ] - Dec 28, 2009

(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 ^^ .


* - Jeff. - Dec 28, 2009

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.


* - 1luv - Dec 28, 2009

Where can I download Toolstrip + Toolstrip controls?


* - The End Gamer - Dec 28, 2009

(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


* - [ Process.xSs ] - Dec 29, 2009

(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 .


* - hemescool - Dec 29, 2009

i love the tutorial




thanks mateeeeee


* - [ Process.xSs ] - Dec 29, 2009

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




thanks mateeeeee


No problem ✌


* - .:Novalok:. - Dec 29, 2009

Great tutorial for beginners..


* - [ Process.xSs ] - Dec 30, 2009

(Dec 29, 2009 01:26 PM)Novalok Wrote:  Great tutorial for beginners..

thanks ✌


* - Montana" - Dec 30, 2009

Nice tutorial for beginners like me :P
thanks for sharing


* - Doubts - Dec 30, 2009

ya i guess... but whats the point of your own web browser?


* - [ Process.xSs ] - Dec 30, 2009

(Dec 30, 2009 04:00 PM)NoDoubts Wrote:  ya i guess... but whats the point of your own web browser?

doe someone asked to mozilla why creating firefox ??


* - 1luv - Dec 31, 2009

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!