Google and YouTube Searcher (Tutorial)
Posted: Sun Sep 18, 2011 12:28 am
This tutorial will show you how to search google & youtube.
1: Open Visual Basic 2010
2: Click on Project next to Create:
3: Click on Windows Form Application, and name the project "Your name's Searcher" and then click Ok.
4: Add a textbox and 2 buttons: Change the buttons text's to Search Google and Search Youtube
5: Double click on the Search Google button and place this code.
-Thanks-
1: Open Visual Basic 2010
2: Click on Project next to Create:
3: Click on Windows Form Application, and name the project "Your name's Searcher" and then click Ok.
4: Add a textbox and 2 buttons: Change the buttons text's to Search Google and Search Youtube
5: Double click on the Search Google button and place this code.
Code: Select all
6: Double click on Search Youtube and place this code.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("iexplore", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
End Sub
Code: Select all
7: Try out the program and you should be able to search Google & Youtube.Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Process.Start("iexplore", "http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
End Sub
-Thanks-