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
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-
Last edited by MANSQN on Tue Feb 14, 2012 10:19 pm, edited 1 time in total.
Nice And U Can add More Futures Like [ Choose Browser From Check Boxes Defult And FFOX AND Chrome + Opera ] and i do that Future
THANK YOU lmao;

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")
himeji-jo wrote:try to use default browserProcess.Start("firefox", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")Code: Select allSystem.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
For Firefox.
Process.Start("chrome", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Google Chrome cooll;
XroX wrote:you don't need that!!!himeji-jo wrote:try to use default browserProcess.Start("firefox", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")Code: Select allSystem.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
For Firefox.
Process.Start("chrome", "http://www.google.com/search?hl=en&q=" + TextBox1.Text + "&aq=f&oq=")
For Google Chrome cooll;
Code: Select all
[/quote]System.Diagnostics.Process.Start("http://www.youtube.com/results?search_type=&search_query=" + TextBox1.Text + "&aq=f")
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
Thank you so much. loove; needed another attractive feature for my project. I think I found it 

6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023