Search Program

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.
2 posts Page 1 of 1
Contributors
User avatar
MasterCoding
Top Poster
Top Poster
Posts: 156
Joined: Sat Oct 24, 2009 4:26 pm

Search Program
MasterCoding
He guys i gonna show you how to make a google or youtube search program.

what whe need:
1 form
1 button
1 textbox


This Code Is for google search click button 1 and paste this code
Code: Select all
IfTextBox1.Text = "" Then MsgBox("Error: No search item or term detected.You must enter a search to process.", MsgBoxStyle.Critical)else

       System.Diagnostics.Process.Start("http://www.google.com/search?hl=en&source=hp&q="+ TextBox1.Text + "&aq=f&oq=&aqi=g10")

This Code Is for Youtube search click button 1 and paste this code

Code: Select all
If TextBox1.Text = "" Then MsgBox("Error: No search item or term detected. You must enter a search to process.", MsgBoxStyle.Critical)else

        System.Diagnostics.Process.Start("http://www.youtube.com/results?search_query=" + TextBox1.Text + "&search_type=&aq=f")
Hope you liked it
User avatar
astheyfall
VIP - Donator
VIP - Donator
Posts: 160
Joined: Sun Sep 19, 2010 6:13 am

Re: Search Program
astheyfall
i have a easier way of doing it...
1 form
2 buttons
1 text box
1 web browser

Name the buttons Google and You tube or use a image like I do in my web browser.
Put text in the text box that says: search...
now add a web browser under the buttons and text box
heres the code for Google search
Code: Select all
WebBrowser1.Navigate("http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=" & TextBox2.Text)
the code for you tube search
Code: Select all
WebBrowser1.Navigate("http://www.youtube.com/results?search_query=" & TextBox2.Text)
then build it and run it
2 posts Page 1 of 1
Return to “Tutorials”