Very simple, but good job man.
Hey,
Im going to teach you how to make a simple webrowser.
You will need:[Visual Basic All versions]
5 buttons
1 webrowser
1 textbox
Ok names your buttons:Back,Forward,Home,Refresh and Go
Enter the following codes:
Back:
webrowser1.goback()
Forward:
webrowser1.goforward()
Home:
webrowser1.gohome()
Refresh:
webrowser1.refresh
Go:
webrowser1.go(textbox1.text)
Not Finished! Ok click on the textbox
See where its properties are? down at the bottom right part of the screen?
CLick what looks like a lightning bolt and if you put your mouse on it it says"Events" click on that. Now scroll down and look for "KeyDown" Now double click Keydown and type this code:
If e.KeyCode = Keys.Enter Then
WebBrowser1.Navigate(TextBox1.Text)
End If
Your Coding Should Look like this:
Heres Your Final Product:
You are done your first webrowser! Congratz and please thank me =)
You can download My Project in attachments,
Heres a virus scan:VirusTotal - Free Online Virus, Malware and URL Scanner
Last edited by VistaLite; 12-07-2010 at 03:34 PM.
Very simple, but good job man.
"Depending on the context, I may or may not enjoy getting stoned to death" - zιтнιυм™
Ex WarRock Minion Force
Tahnks so much! I just got vb last week its been a blast!
@hassan, Fail search
@ OP Thanks for sharing, web-browsers and tuts for them are a little redundant, but thanks
If I could edit it I would teach others how to make a search box its pretty simples to =)
If you want to make a searchBar add a textbox2 and ill use google for ex:
double click searchbar/textbox2 and code:
webrowser1.navigate(samesite.com and (Textbox1.text and textbox2.text)
Fudge! My bad I messed up o well Ill post later on next tutorial
Last edited by VistaLite; 12-08-2010 at 04:48 PM.