Google and YouTube Searcher (Tutorial)

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
MANSQN
VIP - Donator
VIP - Donator
Posts: 159
Joined: Sat Sep 17, 2011 11:33 pm

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-
Last edited by MANSQN on Tue Feb 14, 2012 10:19 pm, edited 1 time in total.
User avatar
XroX
New Member
New Member
Posts: 23
Joined: Thu Sep 29, 2011 7:06 pm

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;
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

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")
User avatar
XroX
New Member
New Member
Posts: 23
Joined: Thu Sep 29, 2011 7:06 pm

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;
User avatar
Danny
VIP - Donator
VIP - Donator
Posts: 621
Joined: Sat Oct 30, 2010 8:21 pm

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
User avatar
Fallon
Just Registered
Just Registered
Posts: 1
Joined: Fri Apr 18, 2014 2:45 pm

Thank you so much. loove; needed another attractive feature for my project. I think I found it :)
6 posts Page 1 of 1
Return to “Tutorials”