Hack Forums
[.NET] [TUT] Google and YouTube Searcher - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [TUT] Google and YouTube Searcher (/showthread.php?tid=499751)



[TUT] Google and YouTube Searcher - iShockYouu - Jun 24, 2010

Its Very Basic But A good tool

Open Visual Basic 2008 Express Edition.

Click on Project next to Create:

[IMG]http://i45.[censored].com/2h2mty1.jpg[/IMG]

Click on Windows Form Application, and name the project "Your name's Searcher" and then click Ok

[IMG]http://i50.[censored].com/18mdg8.jpg[/IMG]

Add a textbox and 2 buttons: Change the buttons text's to Search Google and Search Youtube

[IMG]http://i47.[censored].com/xo35ar.png[/IMG]

Now time for the coding part :D:D:D

Double click on the "Search Google" button and add the following highlighted code:

PHP Code

<?php 
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      
        Dim GoogleCode 
As String
        GoogleCode 
= TextBox1.Text

        Dim FixedGoogleCode 
As String
        FixedGoogleCode 
= GoogleCode.Replace(" ", "+")

Process.Start("iexplore", "http://www.google.com/search?hl=en&q=" + FixedGoogleCode + "&aq=f&oq=")

End Sub 

Double click on Search Youtube and add the following highlighted code:


PHP Code

<?php 
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim YouTubeCode 
As String
        YouTubeCode 
= TextBox1.Text

        Dim FixedYouTubeCode 
As String
        FixedYouTubeCode 
= YouTubeCode.Replace(" ", "+")

Process.Start("iexplore", "http://www.youtube.com/results?search_type=&search_query=" + FixedYoutubeCode + "&aq=f")

End Sub 

Now Your done.

Click on [IMG]http://img231.imageshack.us/img231/9148/debugi.jpg[/IMG] Button

and do whatever. :)


* - laptopguy - Jun 24, 2010

Thank you for this mate; very useful.


* - Quintic - Jun 26, 2010

Thx great help d;

andrew 🤝


* - DStroyer21 - Apr 2, 2011

there is an shorter code like this one:
Process.Start("http://www.google.com/#hl=en&source=hp&q=" & TextBox2.Text)
for youtube
Process.Start("http://www.youtube.com/results?search_query=" & TextBox1.Text & "&aq=f")
put those under some buttons and see it works!



* - The MammoTh - Apr 2, 2011

You made it harder then it really is Use the above ones.