Page 1 of 1

Google and YouTube Searcher (Tutorial)

Posted: Sun Sep 18, 2011 12:28 am
by MANSQN
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.
Code: Select all
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
6: Double click on Search Youtube and place this code.
Code: Select all
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
7: Try out the program and you should be able to search Google & Youtube.

-Thanks-

Re: Google and YouTube Searcher (Tutorial)

Posted: Thu Sep 29, 2011 7:54 pm
by XroX
Nice And U Can add More Futures Like [ Choose Browser From Check Boxes Defult And FFOX AND Chrome + Opera ] and i do that Future :D THANK YOU lmao;

Re: Google and YouTube Searcher (Tutorial)

Posted: Thu Sep 29, 2011 8:09 pm
by Danny
try to use default browser
Code: Select all
System.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")

Re: Google and YouTube Searcher (Tutorial)

Posted: Thu Sep 29, 2011 8:15 pm
by XroX
himeji-jo wrote:
try to use default browser
Code: Select all
System.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
Process.Start("firefox", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Firefox.

Process.Start("chrome", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Google Chrome cooll;

Re: Google and YouTube Searcher (Tutorial)

Posted: Thu Sep 29, 2011 9:14 pm
by Danny
XroX wrote:
himeji-jo wrote:
try to use default browser
Code: Select all
System.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
Process.Start("firefox", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Firefox.

Process.Start("chrome", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Google Chrome cooll;
you don't need that!!!
Code: Select all
System.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
[/quote]
this wil open it in your default browser also in chrome and firefox of one of them are selecterd as default!!
you don't need that code of yours

Re: Google and YouTube Searcher (Tutorial)

Posted: Fri Apr 18, 2014 3:10 pm
by Fallon
Thank you so much. loove; needed another attractive feature for my project. I think I found it :)