» Site Navigation | | | » Advertisement | | | » Recent Threads | Suitcase Yesterday 08:51 PM Today 11:10 PM 3 Replies, 35 Views | | | | | | | | | |  |  | VB.net- Web Browser For Beginners Tutorial |  |
04-18-2009, 01:52 PM
|
#1 (permalink)
| Banned
Join Date: Mar 2009 Posts: 377
GPoints: 5,333 Rep Power: 0 | VB.net- Web Browser For Beginners Tutorial VB.net- Web Browser for Beginners Another Pwnful Tutorial by Fexxel
---------------------------------------------------- Before we begin... Some commands/models you should know:
To get a web browser to go somewhere: (this code goes on a "Go" button)
NameOfWebBrowser.Navigate(NameOfNavigationBox.Text )
For example:
WebBrowser1.Navigate(URLbox.Text)
To Refresh:
NameOfWebBrowser.Refresh()
For example:
WebBrowser1.Refresh()
(I'll Add more later, maybe xD)
--------------------------------------------------- To Make A Browser.... Step 1: Add a Web Browser to your form.
Click on Web Browser in the toolbar 
Step 2: Drag out the web browser to an appropriate size
Step 3: Unlock the parent container.
To do this, click on the web browser thing in the right top corner of the item, and select "unlock in parent container". Click on the arrow thing. 
Step 4: Make A text box 
Select "Text Box" in the toolbar, and drag it out (preferably above the actual web browser)
Step 5: In the text box properties, change the name to URLbar (or whatever you want it to be) 
Step 6: Make the Go button
Button #1- It's the "go" button. It directs the user to whatever they type into the URLbar text box.
After dragging out a button (see Button in the toolbar where you got the textbox and web browser?) change it's TEXT (not name) in the properties window to "Go"
Step 7: Double click the go button, and type in:
WebBrowser1.Navigate(NameOfTheTextBar.Text)
Mine is:
WebBrowser1.Navigate(URLbar.Text)
WebBrowser1 is the name of the web browser,
.Navigate is the command
(URLbar.Text) is the place to execute the command to.
So this line of command makes the web browser go to whatever URL is typed in the textbox previously made.
Step 8: Make the Second Button "Refresh"
Make another button and change the TEXT (not the name!) in the properties to "Refresh"
Step 9: Double click the Refresh Button and add the code to:
WebBrowser1.Refresh()
This means:
It's telling WebBrowser1 to execute the command of Refreshing once.
Done!
Your coding should look like this: Code: Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate(URLbar.Text)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Refresh()
End Sub
End Class And here's a screen shot of the end result for me: Please rate this guide out of 10! (IE: 1/10 is worst, 10/10 is best)
~Fexxel PS: the Label Option is this: 
Select a label from the toolbar, and change the TEXT property of it to whatever you want. I put a label above the URL bar.
Last edited by Fexxel; 04-18-2009 at 01:55 PM..
| |
| |  |
04-29-2009, 09:15 AM
|
#2 (permalink)
| Full Member
Join Date: Apr 2009 Posts: 10
GPoints: 319 Rep Power: 0 | Thnks Dude i gonna make mi own navigator LOL | |
| |
04-29-2009, 09:32 AM
|
#3 (permalink)
| Site Programmer
Join Date: Sep 2006 Location: Sheffield, UK Posts: 271
GPoints: 6,178 Rep Power: 13 | 1/10
A web browser tutorial is just like a GFX scanline one, pointless, common and EVERYBODY writes them.
You could have at least mentioned how to fill and submit forms or something O_o
__________________ | |
| | | The Following User Says Thank You to Sid For This Useful Post: | |
05-10-2009, 05:40 PM
|
#4 (permalink)
| Full Member
Join Date: May 2009 Location: MA, United States Posts: 276
GPoints: 174 Rep Power: 3 | 1/10 Anyone could figure this out on their own.
__________________ | |
| |
05-10-2009, 05:44 PM
|
#5 (permalink)
| Banned
Join Date: Dec 2006 Location: New Hampshire Age: 18 Posts: 8,698
GPoints: 1,743 Rep Power: 0 | Not everyone is a programming genius like yourself. | |
| |
05-10-2009, 05:49 PM
|
#6 (permalink)
| $$$
Join Date: Jan 2009 Posts: 919
GPoints: 10,064 Rep Power: 12 | honestly i didn't know this stuff (IM UNEDUCATED, OK) so i found it helpful?
not sure why ya'll are being dicks about it.
thanks
__________________ $$$ M.O.B. $$$
i hate obama 
mmmmmmmmmmmmmmmm thanks governments@hotmail.com boughtdown - stop IMing me on aim 
im fucking the puffin | |
| |
05-11-2009, 09:57 AM
|
#7 (permalink)
| Site Programmer
Join Date: Sep 2006 Location: Sheffield, UK Posts: 271
GPoints: 6,178 Rep Power: 13 | Sorry, but he asked for a rating.
I wouldn't have criticized it otherwise.
__________________ | |
| |
05-11-2009, 03:17 PM
|
#8 (permalink)
| Banned
Join Date: Mar 2009 Posts: 377
GPoints: 5,333 Rep Power: 0 | Quote:
Originally Posted by maurer honestly i didn't know this stuff (IM UNEDUCATED, OK) so i found it helpful?
not sure why ya'll are being dicks about it.
thanks | Thanks Maurer, 
----
See, Sid? Not everyone is a complete programming legend.
---- Quote:
Originally Posted by Sid Sorry, but he asked for a rating.
I wouldn't have criticized it otherwise. | My fault for caring. I guess in the future I'll ask for one just not from you? | |
| |
05-14-2009, 08:51 PM
|
#9 (permalink)
| Full Member
Join Date: May 2009 Location: MA, United States Posts: 276
GPoints: 174 Rep Power: 3 | My bad I didn't want to be too much of a dick, sorry if I sounded like a pretentious asshole.
__________________ | |
| |  | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |