• Log in or sign up for an account here: https://www.sythe.org/login

Web browser tutorial

Was this tutorial helpful?

  • Yes!

    Votes: 3 42.9%
  • It's Ok..

    Votes: 4 57.1%
  • Horrible!

    Votes: 0 0.0%

  • Total voters
    7

kharg0

Active Member
Joined
Feb 25, 2007
Sythe Gold
0
Messages
131
i can give a small simple we browser tutorial for the noobs like me:)

first create a windows form

then put a panel in click it once and in the bottom left are the properties
find "Dock" in them and set it to top by clicking on the dock property and pressing the small arrow click the button thats on the top

now your panel should be on the top of the form
now you add Seven buttons
#1 Back
#2 Forward
#3 Refresh
#4 Cancel
#5 Home
#6 Go!
#7 Go!

add a combobox and to the right of the combobox put one of your Go! buttons

go to your toolbox if you can't see it press view then toolbox
on the toolbox look for the button at the top that looks like a pin

there click all window forms scroll down to the bottom you see somthing called "WebBrowser" put that below your panel and once again go to properties box "Dock" and set it to the middle button (the biggest one)

double click the Go! button beside your combobox and add this code:

WebBrowser1.Navigate(ComboBox1.Text)

that controls your webbrowser so it shows the webpage that you type in on your combobx

make sure all of your 6 more buttons are in the panel the farthest to the left should be back then forward then refresh then cancel then home (as for you other go button place that beside your first 1)

double click the back button and add this code:

WebBrowser1.GoBack

beside it there will appear to brackets "()" do nothing with these

go back and double click your forward and add this code:

webrowser1.goforward

once again beside it there will appear to brackets "()" and once again do nothing with these

go back and double click your refresh button and add this code:
webrowser1.refresh

do nothing with the brackets

go back and double click your cancel button and add this code:
webbrowser1.stop
do nothing with the brackets

go back and double click your home button and add this code:
webbrowser1.gohome
nothing with the brackets

now for your second Go! button put it the farthest to the "Right"
beside it to the left put a text box
double click the Go! button and add this code

Code:
WebBrowser1.Navigate("http://www.google.com/search?q=" & TextBox1.Text & "&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a")



thats the end of my tutorial to make your buttons look better make them picture boxes and create some great pics using axialis iconworkshop get this a tucows.com and make them apear as buttons by clicking once on them going to the properties box finding cursor changing it to hane and then when your mouse hovers over it it will look like a hand.

Thx i hope you enjoy it! :D

Update!!

how to make a picture look like it's been clicked..

step #1 make your basic internet using pictures for buttons just double click the pictures and add the goback,forward junk make a second back button that seemes to be pushed in put it above your other back button and in the properties select the visible and change it to hide

Step #2 add a timer component on the properties enabled should = true and interval at 300

Step #3 double click the timer component and add this code
Code:
PictureBox9.Hide

Step #4 Double click your second back button and add this
Code:
WebBrowser1.GoBack

Step #5 while still in the code editor find the one that also has WebBrowser.GoBack in it

Step #6 add this code:
Code:
PictureBox9.Show
and this one:
Code:
Timer1.Start

now try it when it's clicked it will show your second image for .3 seconds to change this go to your timer1 properties and change interval to whatever 1000=1 second

End of update

Another Update!! WARNING: thos update not for total noobs im a noob and i can understand it barely NOTE: I created this tutorial

how to change search bars with the click of a button

step#1 ok you have your program with all of your buttons and stuff make 3 more buttons (unless you don't have a google search bar if you don't then add 4 buttons) put text as Ask Search, MSN Search, Yahoo Search and for those who don't have a google search bar in their browser, Google Search.

Step#2 now add 3 textboxes 4 if you don't have google search bar, 3 labels and 4 if you don't have a google search bar.

Step#3 name each text box... google1 , msn1 , yahoo1 , ask1 and each label the same way but with a 2 instead of 1 and the buttons too with a 3

Step#4 put a menu toolbar in and click on it where it says type put in Search Bars beneath it put Google, Ask Jeeves, Msn ,
and Yahoo

step#5 now double click your yahoo in the menu and put this code in:
Code:
yahoo3.BringToFront()
         yahoo1.BringToFront()
         google2.Hide()
         yahoo2.BringToFront()
         yahoo2.Show()
         ask2.Hide()
         msn2.Hide()

if you did that correctly that will make it so when you click that all of the othe buttons labels and textboxes go to the back then dissapear all except yahoo


Step#6 double click your google button in the menu and put this:
Code:
google3.BringToFront()
          google1.BringToFront()
          google2.BringToFront()
          google2.Show()
          ask2.Hide()
          msn2.Hide()
          yahoo2.Hide()

if you did that correctly that will make it so when you click that all of the othe buttons labels and textboxes go to the back then dissapear all except google

Step#7 double click your ask button in the menu and put this:
Code:
ask3.BringToFront()
          ask1.BringToFront()
          ask2.BringToFront()
          ask2.Show()
          google2.Hide()
          msn2.Hide()
          yahoo2.Hide()

once agin do the same thing

step#8 and now your msn one:
Code:
msn3.BringToFront()
          msn1.BringToFront()
          msn2.BringToFront()
          msn2.Show()
          ask2.Hide()
          google2.Hide()
          yahoo2.Hide()

end of update!!!

Update!! this update i got from flaming idiots

make a combobox save text..

step #1 add a combobox and a webrowser

Step #2 double click the web browser and add this code:

Code:
Me.Text = WebBrowser1.DocumentTitle & " - I-Net"
        'DocumentTitle might be DocumentName
        If Me.ComboBox1.Items.Contains(WebBrowser1.Url.ToString) Then _
            Me.ComboBox1.Items.Remove(WebBrowser1.Url.ToString)

        Me.ComboBox1.Items.Add(WebBrowser1.Url.ToString)


Update!!! credit goes to cooladrrand

make a bookmarks's page

u can also add another form thats at the right on the top u put add a form named bookmark.vb add a save button code
Code:

Code:
dim regedit
Set Regedit = CreateObject("WScript.Shell")
    Regedit.RegWrite "HKEY_CURRENT_USER\Software\CoolBrowser\bookmarks", textbox1.Text  
    Set Regedit = Nothing

and put this and load button and add this



Code:
dim regedit 
On Error Resume Next
    Set Regedit = CreateObject("WScript.Shell")

    textbox1.Text = Regedit.RegRead("HKEY_CURRENT_USER\Software\CoolBrowser\bookmarks")    
    Set Regedit = Nothing

at the bottom and on the top at a textbox named textbox1 and allow multiple row. and finaly on the webbrowser add this


Code:
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
        webBrowser1.Width = Me.Width
        webBrowser1.Height = Me.Height
    End Sub
 
also add the bookmark stuff thats at my tuturials
 
ok i will but there's 1 problem if i don't understand the favorites thing no1 more nooby than me will..
 
i dont get the favorites thing (the other stuff ws helpfull)
 
thx dodge
 
Runescape Gamblingrunescape gambling
Back
Top