Results 1 to 8 of 8
-
19th Feb 2011, 04:47 AM #1OPJust Another Coder
[TUT] Simple WebBrowser in C#
Open Visual Studio or Visual C# which ever one you haveIn this tut I am using Visual Studio 2010.
First create a new project and name it whatever you want
Single click on the Form1 and replace it with any name you want to give to the webbrowser.
Now add a ToolStrip. ToolStrip is found in the ToolBox in Menu and Toolbars tab.
Add a WebBrowser into the Form below the tools strip and make it to the size you want, after which the form will look like the one below.
[slidehttp://lulzimg.com/i13/e8a9fa.png[/slide]
Time to add some Buttons to the toolbar for the web browser controls. Click on the ToolStrip placed in the form and a little blue box will appear to the left end of the tool strip. Click on the blue box that appears and a picture button will popup and do this for 5 picture boxes and then click on the down arrow and select text box. After this add one more picture box at the end.
This is how it will look finally
1 Picture Box - Back
2 Picture Box - Forward
3 Picture Box - Home
4 Picture Box - Stop
5 Picture Box - Refresh
6 Picture Box - GO
TextBox - URL
Now that the basic things are done with, you should add the corresponding icons to the picture boxes. This can be done by right clicking on the picture box and then Set Image.
I just added some random icons to this and it will look like the below image
Now I also wish to change the icon of the browser tooI am kinda crazy. So the control is over here. Always remember you should have an .ico file for this.
So finally, here is the basic look of the web browser we made till now. B)
Now coming to the controls and the coding part. You may wonder itz gonna be difficult or something but this is the simplest part ever and the most easiest part which u can do in less than five minutes and get the browser on the go
Double click the back button on the tool strip and add this code.
Code:webBrowser1.GoBack();
OK double click the forward button on the tool strip and add this code.
Code:webBrowser1.GoForward();
Code:webBrowser1.GoHome();
Code:webBrowser1.Stop();
Code:webBrowser1.Refresh();
So what we do is add code to our Go button.
Code:webBrowser1.Navigate(toolStripTextBox1.Text);
That is it. Now the WebBrowser is ready to go.Build it and Use it
Herz the working one I made along with the tutorial
This tutorial is completely written by me and the screenshots are from ma pcfdls Reviewed by fdls on . [TUT] Simple WebBrowser in C# Open Visual Studio or Visual C# which ever one you have >.< In this tut I am using Visual Studio 2010. First create a new project and name it whatever you want :unsure: http://i.imgur.com/0Yu2j.png Single click on the Form1 and replace it with any name you want to give to the webbrowser. http://i.imgur.com/NES0s.png Rating: 5
-
19th Feb 2011, 04:50 AM #2MemberWebsite's:
hotfilezone.org 64kalas.comnice share
thanks
-
19th Feb 2011, 04:51 AM #3Member
good tutorial, however is it not based on ie?
Please follow signature rules
-
19th Feb 2011, 04:54 AM #4MemberWebsite's:
WarezX.infoGood one.
Thanks
-
19th Feb 2011, 04:55 AM #5Respected MemberWebsite's:
DL4Everything.com Soft2050.inNice Tutorial
I use this type of webbrowser to visit website like Paypal etc...
So that if there is any istealer in my pc, it will not got detected.
-
19th Feb 2011, 05:01 AM #6Member
-
19th Feb 2011, 05:10 AM #7Banned
Thanks for this nice tutorial fdls
Its looks quite easy to do so I have added it to my blog as well
Here take a look :-
http://www.blogtheway.com/
http://www.blogtheway.com/2011/02/ho...bbrowser-in-c/
Hope you dont mind
-
19th Feb 2011, 05:18 AM #8OPJust Another Coder
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] Simple PHP Job
By Apathetic in forum Completed TransactionsReplies: 0Last Post: 14th Sep 2011, 02:08 AM -
i need simple css help
By chems in forum Web Development AreaReplies: 5Last Post: 3rd Apr 2011, 04:35 AM -
[Hiring] $10 simple job :D
By viruz99 in forum Completed TransactionsReplies: 8Last Post: 28th Nov 2010, 07:22 AM -
Something Simple
By w00ty in forum Graphics AreaReplies: 0Last Post: 14th Jul 2010, 07:58 AM -
Its seems so simple ...
By S?nic in forum IP.BoardReplies: 8Last Post: 20th Sep 2009, 12:42 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...