[TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] (/showthread.php?tid=13603) |
[TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Statics - 11-09-2010 Hey Support Forums,
I have decided to make a new tutorial for new members to learn how to code, this is my tutorial on how to make a web browser. This tutorial was created by me a VERY long time ago but it still works and it is effective. Here it is: Required items in order to successfully follow this tutorial:
Firstly, you must open Visual Basic 2010 and then click new project and choose the windows form application as explained in the following picture: Spoiler (Click to View) Secondly, you can change the name of the browser and the size by doing the following: Spoiler (Click to View) Thirdly, you must add a panel by simply clicking the toolbox in the top left corner and do the following: Spoiler (Click to View) Fourthly, you must go to toolbox (once again) and choose WebBrowser and do the following: Spoiler (Click to View) Fifthly, you must open toolbox and add buttons (five of them in fact) and do the following with them: Spoiler (Click to View) Sixthly, you must re-name the buttons into what I have done in the following picture: Spoiler (Click to View) Sevently, you must add a textbox and extend it as I have done. You must also add a label, all of the required objects in this step are in the toolbox. Spoiler (Click to View) Eighthly, you must add a statusstrip at the bottom of the webbrowser as I have done, you can obtain the status bar from the toolbar. Spoiler (Click to View) Tenthly, it is finally time to get some coding done!, double click the buttons before you add the codes, he codes for the buttons are below: Back Button: Code: WebBrowser1.GoBack() Forward Button: Code: WebBrowser1.GoForward() Refresh Button: Code: WebBrowser1.Refresh() Stop Button: Code: WebBrowser1.Stop() Go Button: Code: WebBrowser1.Navigate(Textbox1.Text) The progress bar: Code: Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged After you have added the codes for the buttons you are done!, the codes should be something like this: Spoiler (Click to View) This is the whole code: Code: Public Class Form1 Finally, after you have done everything and added all the codes etc, you can change the icon of the browser and the name of the things. This is how it looks like: Spoiler (Click to View) If you have any questions, feel free to post in this thread or private message me! Thank you and enjoy! RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Statics - 11-10-2010 10 views and no replies? Come on guys, Support Forums could do better than this. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Lin - 11-10-2010 Not a bad tutorial by no means but this is a very common tutorial made by people. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Statics - 11-10-2010 (11-10-2010, 08:21 AM)Lin Wrote: Not a bad tutorial by no means but this is a very common tutorial made by people. Hmm, you are right, this is a really easy tutorial and any one can make it. I am not a really good coder but I like to help therefore I thought this might help out some newbies at Support Forums. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Jet - 11-11-2010 I've seen this tutorial many times on Hackforums, good share for this site though, very detailed. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Statics - 11-12-2010 Thank you for the comment Jet, sorry if this is too common. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Twicks - 11-12-2010 I've always wondered how to do this. Perhaps one day I'll get around to installing VB and then I'll code a browser. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Statics - 11-12-2010 (11-12-2010, 09:02 AM)Twicks Wrote: I've always wondered how to do this. Perhaps one day I'll get around to installing VB and then I'll code a browser. Hmm, good luck on the Twicks, hope you will use my tutorial. RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Navineous - 11-15-2010 Very nice tutorial, keep the HQ posting up! RE: [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] - Ck1.3Staff - 11-16-2010 Very good for new members! thanks! |