Thursday, July 30, 2009

What code do you need to enter to make webbrowser toolbar buttons work on Visual Basic Express 2005?

Well, I am working on a Web Browser using Microsoft Visual Basic Express 2005. I have put the toolbar in at the top of the window and have inserted Back, Forward and Refresh buttons. However i cannot remember what code to put to make then perform the correct functions.


Thanks in advance. :)

What code do you need to enter to make webbrowser toolbar buttons work on Visual Basic Express 2005?
Actually, I am not exactly sure. I am just learning this stuff myself. But I can copy and paste in my answer that I just gave to someone else for a similar question. I do know that there are links that point towards a tutorial that shows you how to build a web browser in VB. So take out of this what you want. Good luck.





Absolutely. I just made my first web browser myself a few days ago. I used Microsoft Visual Basic 2008 (free) and followed the step-by-step video tutorial on how to make a simple web browser. You can make one very fast.





For those of you that don't have Visual Basic, jo to http://www.microsoft.com/express/vb/ and dowload and install.





I'll look for the tutorial link and put it up here soon for you.





Well, I couldn't find where the exact tutorial that I was thinking about on the internet, but I did find another place that gives a fairly detailed steps to create a web browser and the components. It is pretty detailed (even with the picture links not displaying properly): http://www.trap17.com/index.php/how-make...





I can tell you that in Visual Basic Express 2008, it only takes one line of user-created code to make a super-basic web browser.





For those of you that haven't created a web browser in Visual Basic before, the process is easy, and can be done by following these steps.





If you created a new project in VB 2008, and drag a button from the toolbox on to the form1 that is automatically created by default at start. Also drag a WebBrowser control on to the form1. And drag a TextBox on to the form1 as well. Double-click your button that you created that is on the form1. It will enter the code view. And where the cursor is initally flashing (between the 'sub' and 'end sub' codes), copy and paste the following single line of code:





SimpleWebBrowser.Navigate (TextBox1.Text)





and that is it!





It's pretty simple actually.





Just be sure to also look at the tutorial that I just found at http://www.trap17.com/index.php/how-make... and also look in to some of these other sites if you want, like http://www.dotnetonweb.geekpedia.com/24_...





Or maybe you want to program in C# or something, maybe check out http://www.c-sharpcorner.com/UploadFile/... too. Microsoft offers all the programming languages in Express Editions at no cost, as long as you are a authenticated and validated Windows Operating System (OS) owner. Go to http://www.microsoft.com/express/product... for the list or products. Quite impressive stuff. I am just getting started out myself on programming and it is fun! I am looking in to the robotics development section as well. Building a robot for under $300 USD looks incredibly awesome to me! I just found this: http://shop.lego.com/ByCategory/Product.... pretty cool stuff.





Hope this helps.

eurovision song contest

No comments:

Post a Comment