Go Back   Gaming Gutter > Non-Gaming > Programming > Tutorials


Tutorials - Looking for programming tutorials to increase your knowledge? Do so here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» GG Stuff

Follow us on Twitter!

Get the GG toolbar today (for firefox only)
» Recent Threads
Go to first new post Suitcase
Yesterday 08:51 PM
by Crepe
Last post by Oops
Today 11:10 PM
3 Replies, 35 Views
Go to first new post Loyal User Perk
Today 05:01 PM
by BSavage
Last post by l_royalty_l
Today 11:04 PM
15 Replies, 136 Views
u guise r meen
Today 08:24 PM
by Sxc
Last post by Husky
Today 10:56 PM
59 Replies, 259 Views
Hey hey now! PotW...
Today 04:34 PM
Last post by Husky
Today 10:53 PM
14 Replies, 53 Views
Go to first new post If you had to choose a...
02-22-2010 02:03 PM
Last post by El Zorro
Today 10:47 PM
22 Replies, 388 Views
Reply
 
LinkBack Thread Tools Display Modes

 VB.net- Web Browser For Beginners Tutorial
Old 04-18-2009, 01:52 PM   #1 (permalink)
Banned

Male Fexxel is offline
 
Join Date: Mar 2009
Posts: 377
GPoints: 5,333
iTrader: 0 / 0%
Fexxel Is Popular
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..
  Reply With Quote

 
Old 04-29-2009, 09:15 AM   #2 (permalink)
Full Member

Male Wrips is offline
 
Join Date: Apr 2009
Posts: 10
GPoints: 319
iTrader: 0 / 0%
Wrips Is a New Face in Town
Rep Power: 0
Thnks Dude i gonna make mi own navigator LOL
  Reply With Quote

 
Old 04-29-2009, 09:32 AM   #3 (permalink)
Sid
Site Programmer

Male Sid is offline
 
Join Date: Sep 2006
Location: Sheffield, UK
Posts: 271
GPoints: 6,178
iTrader: 0 / 0%
Sid Is a Party CaptainSid Is a Party CaptainSid Is a Party Captain
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
__________________
  Reply With Quote
The Following User Says Thank You to Sid For This Useful Post:
ricky92 (05-20-2009)

 
Old 05-10-2009, 05:40 PM   #4 (permalink)
Full Member

Male eye.program is offline
 
Join Date: May 2009
Location: MA, United States
Posts: 276
GPoints: 174
iTrader: 0 / 0%
eye.program Is gaining popularity
Rep Power: 3
1/10 Anyone could figure this out on their own.
__________________
  Reply With Quote

 
Old 05-10-2009, 05:44 PM   #5 (permalink)
Banned

Male Tyler is offline
 
Join Date: Dec 2006
Location: New Hampshire
Age: 18
Posts: 8,698
GPoints: 1,743
iTrader: 24 / 100%
Tyler - Total CelebrityTyler - Total CelebrityTyler - Total CelebrityTyler - Total CelebrityTyler - Total CelebrityTyler - Total Celebrity
Rep Power: 0
Not everyone is a programming genius like yourself.
  Reply With Quote

 
Old 05-10-2009, 05:49 PM   #6 (permalink)
$$$

Male maurer is offline
 
maurer's Avatar
 
Join Date: Jan 2009
Posts: 919
GPoints: 10,064
iTrader: 0 / 0%
maurer - Total Celebritymaurer - Total Celebritymaurer - Total Celebritymaurer - Total Celebritymaurer - Total Celebritymaurer - Total Celebrity
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
  Reply With Quote

 
Old 05-11-2009, 09:57 AM   #7 (permalink)
Sid
Site Programmer

Male Sid is offline
 
Join Date: Sep 2006
Location: Sheffield, UK
Posts: 271
GPoints: 6,178
iTrader: 0 / 0%
Sid Is a Party CaptainSid Is a Party CaptainSid Is a Party Captain
Rep Power: 13
Sorry, but he asked for a rating.
I wouldn't have criticized it otherwise.
__________________
  Reply With Quote

 
Old 05-11-2009, 03:17 PM   #8 (permalink)
Banned

Male Fexxel is offline
 
Join Date: Mar 2009
Posts: 377
GPoints: 5,333
iTrader: 0 / 0%
Fexxel Is Popular
Rep Power: 0
Quote:
Originally Posted by maurer View Post
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 View Post
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?
  Reply With Quote

 
Old 05-14-2009, 08:51 PM   #9 (permalink)
Full Member

Male eye.program is offline
 
Join Date: May 2009
Location: MA, United States
Posts: 276
GPoints: 174
iTrader: 0 / 0%
eye.program Is gaining popularity
Rep Power: 3
My bad I didn't want to be too much of a dick, sorry if I sounded like a pretentious asshole.
__________________
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 11:46 PM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.29389596 seconds (100.00% PHP - 0% MySQL) with 21 queries