Results 1 to 4 of 4
  1. #1
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool

    Smile [TUT] Google and YouTube Searcher

    This tutorial will show you how to make a software that searches Google and Youtube.

    Open Visual Basic 2008 Express Edition.

    Click on Project next to Create:


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





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





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

    Code:
    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", "https://www.google.com/search?hl=en&q=" + FixedGoogleCode + "&aq=f&oq=")
    
    End Sub
    Double click on Search Youtube and add the following highlighted code:

    Code:
    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", "https://www.youtube.com/results?search_type=&search_query=" + FixedYoutubeCode + "&aq=f")
    
    End Sub
    Try out the program and you should be able to search Google and Youtube.
    Last edited by deathninjak0; 12-06-2009 at 01:47 PM.

  2. The Following 2 Users Say Thank You to deathninjak0 For This Useful Post:

    Houston (12-07-2009),XGelite (12-07-2009)

  3. #2
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Fairly simple program, but a good one for the noobs.

    Only error (I think) is that if you type spaces it wouldn't work.

    To fix that you would do this:

    Code:
    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", "https://www.google.com/search?hl=en&q=" + FixedGoogleCode + "&aq=f&oq=")
    
    End Sub
    Code:
    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", "https://www.youtube.com/results?search_type=&search_query=" + FixedYoutubeCode + "&aq=f")
    
    End Sub

    Nice job though... just a couple possible errors

  4. The Following User Says Thank You to Lolland For This Useful Post:

    Pixie (12-06-2009)

  5. #3
    deathninjak0's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    1,510
    Reputation
    12
    Thanks
    294
    My Mood
    Cool
    Quote Originally Posted by lolland View Post
    Fairly simple program, but a good one for the noobs.

    Only error (I think) is that if you type spaces it wouldn't work.

    To fix that you would do this:

    Code:
    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", "https://www.google.com/search?hl=en&q=" + FixedGoogleCode + "&aq=f&oq=")
    
    End Sub
    Code:
    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", "https://www.youtube.com/results?search_type=&search_query=" + FixedYoutubeCode + "&aq=f")
    
    End Sub

    Nice job though... just a couple possible errors
    Thanks for the right codes

  6. #4
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Yeah, no problem. Always glad to help

Similar Threads

  1. [TUT]Downloading and Installing JDK
    By ♪~ ᕕ(ᐛ)ᕗ in forum Java
    Replies: 8
    Last Post: 01-07-2011, 08:00 AM
  2. Replies: 3
    Last Post: 12-31-2010, 03:54 AM
  3. [Help] Engine and Memory Searcher
    By silentrunner2 in forum Combat Arms EU Hack Coding/Source Code
    Replies: 5
    Last Post: 09-01-2010, 04:36 AM
  4. xInfinity 3 [Beta 2] - With TABBED/MULTI INJECTION, Wizard 2.0 and improved searcher!
    By Samueldo in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 38
    Last Post: 07-03-2010, 06:40 AM
  5. Easiest and Simple Searcher [ESS]
    By zanakinz1 in forum Visual Basic Programming
    Replies: 4
    Last Post: 01-19-2010, 06:14 AM