today will show you how you can make it easily....
i will give you steps of simplest browser, with only on button that is GO...
but you can add more.
If you have ever wished you could build your own web browser, it's far easier than you think. Take a look.
Things You'll Need:
- Microsoft Visual Studio 2005
- Some knowledge of Visual Basic
- 1Create VB ProjectCreate a new Visual Basic Windows Application project. This sample project was named PersonalBrowser and saved locally.
- 2Change Form1 Text PropertyClick on Form1 and change its default Text property to "PersonalBrowser".
- 3Add WebBrowser ComponentFrom the Toolbox, add the WebBrowser component. It will fill the form. To change this, click the new WebBrowser1 and change its Layout Dock property from "Fill" to "Bottom". This will allow you to change it's size and make space for some extras.
- 4Add TextBox And ButtonFrom the Toolbox, add a TextBox and a Button. Neatly position both above WebBrowser1.
- 5Change the Text property of Button1 to "Go". Modify the Anchor property on all three accordingly.
- 6Add button functionDouble-click on the button. This is how the browser will grab the address you type in TextBox1 (aka. address bar). Add the following:
If TextBox1.Text = "" Then
WebBrowser1.Navigate("www.ehow.com")
Else
WebBrowser1.Navigate(TextBox1.Text)
End If - 7Run the example to test it out. When you've got it tweaked with pictures, colors, and lots of extras, Publish your finished product and use it with pride!
mmec
No comments:
Post a Comment