Programming: Making a WebBrowser in VB 2005 EE

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Programming: Making a WebBrowser in VB 2005 EE

Post by Kurroda »

Start of by making a new project. Size the form to what eversize you want. Now In the tool box locate the menu strip tool and drag it onto the form it should automaticly go to the top and that fine now right click on the menu strip and select insert standard items just so it doesnt look empty. Now drag out the Tool box tool onto the form it should automaticly go under the menu strip, Now drag and status strip onto the form,
This is what you should have so far:
Image

Now locate the WebBrowser tool in the toolbox and drag it onto the form i prefer to dock it to the parent but thats your choice. Now on the Toolstrip add Five buttons now add a drop down bar on the toolstrip then another button after it now click the combo box and go to properties and near the button change the width to how you want it. Now one more thing before we get coding click on the first button in the properties window select Display style and set it to text and now change the text of the button to Back now do this for the rest of the buttons so they say Back Foward Home Refresh Cancel and Go

Now to get coding.

Double Click your Go Button
and add this code in this is the main code that is needed to make the webbrowser work

Code: Select all

WebBrowser1.Navigate(ToolStripComboBox1.Text)
Now for your
Back

Code: Select all

WebBrowser1.GoBack()
Foward

Code: Select all

WebBrowser1.GoFoward()
Home

Code: Select all

WebBrowser1.GoHome()
Refresh

Code: Select all

WebBrowser1.Refresh()
Cancel

Code: Select all

WebBrowser1.Stop()
well that is it have fun
Image
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

This is like the 4th tutorial on this.GJ though :D
...left for good
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post by Kurroda »

i dint see any for 2005 EE
Image
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

They aren't stickied.And basically the one in VB6 is the same as in VB.NET :D
...left for good
Kurroda





Posts: 1737
Joined: Sat Sep 03, 2005 10:01 am
Contact:

Post by Kurroda »

it differs
Image
Post Reply