Exclamation[Pic TuT] Web browser Vb8

Posts 1–6 of 6 · Page 1 of 1
[Pic TuT] Web browser Vb8
Ok so some ppl ask for it but not much but its easy so here it is....

First start a normal project....



Now Make form1 as big as u want it to be then add a Panle when u do this go to the panles properties and find Doc and click the drop down menu and click the top butten and make the panle small but able to fit a textbox....



Now add a butten and make the textbox long also name the butten GO....(if u dont know how ill expline at the bottem)....



Ok now to add the acutle browser look throw ur common controls box and at the bottem is the web browser add it to the form and do the same as u did with the panle but make it as fill.....



Ok now for the codeing and ill explane what each code dose b/c of a tip i was given in my last TuT now duble click the GO butten and this page will load....



Now click under the line that says "Private Sub Button1_Click" and then add this code...
WebBrowser1.Navigate(TextBox1.Text)
It should look like this....



Ok now that code basicly say for what ever is typed in to the Text box while be serched thro the web browser... and now ur done see not very hard but one thing any web site u want to pull up oh say like this one u have to have the HTTP:// thing or it wont serch so it would look like this "http://www.mpgh.net" when u add it to the address bar "textbox"

Ok now if u dont know how to change the name on ur butten click ur butten look throw it properies and find Text in it should be "butten1" click that and type "Go" then click some where eals and ur good...

Hope u liked and if u can thank me or click my habamon (both) na dhelp me there... well cya next time
oh and if u need any help like alwasy just ask
So many tuts of this, is this a full one?
it doesnt need the http:// part

This is my entire Code and I dont need HTTP:// :
(Funny, its exacully like yours, and I didnt make it using this tut at all, and I dont need HTTP://)

Code:
Public Class Form2

    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)
    End Sub

    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

    End Sub
End Class
This tutorial is kinda easy, but one of the 'Main'-Things you need to know, if you ask me. :P

Btw. some Pictures got deleted.
Thanks for tut, so easy, but it has mainframe tools you gotta know
there are so many tuts for this
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?