Well here is another tutorial that I hope you all enjoy. This is pretty easy and you can keep adding other search engines like Ask and Bing, but I haven't seen a Youtube search thing in a browser before so I hope this helps.
Code:
Private Sub TextBox2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyDown If e.KeyCode = Keys.Enter Then If ButtonX5.Text = "Google" Then Dim Childform2 As New Browser Childform2.MdiParent = Me Childform2.Show() Childform2.GeckoWebBrowser1.Navigate("http://www.google.com/search?hl=en&source=hp&q=" & TextBox2.Text & "&aq=f&aqi=g10&aql=&oq=") End If If ButtonX5.Text = "Yahoo!" Then Dim Childform2 As New Browser Childform2.MdiParent = Me Childform2.Show() Childform2.GeckoWebBrowser1.Navigate("http://search.yahoo.com/search;_ylt=A0oG7lr25IxNVAsASQVXNyoA;_ylc=X1MDUCMyMTQyMzU3MDg5BF9yAzIEYW8DMQRmcgN5ZnAtdC03MDEEZnIyA3NidG4EaG9zdHB2aWQDM1lsSHdFb0c3djVBZlhDdkpteVFZZ0FzWW83eHJrMk01UFlBQmplawRuX2dwcwMxMARvcmlnaW4Dc3JwBHF1ZXJ5A2hlbGxvBHNhbwMxBHZ0ZXN0aWQD?p=" & TextBox2.Text & "&fr2=sb-top&fr=yfp-t-701&type_param=") End If If ButtonX5.Text = "Youtube" Then Dim Childform2 As New Browser Childform2.MdiParent = Me Childform2.Show() Childform2.GeckoWebBrowser1.Navigate("http://www.youtube.com/results?search_query=" & TextBox2.Text & "&aq=f") End If End If End Sub
before you put your code in the description check it because it gets the code all fucked up!
francis9919 4 months ago
@francis9919 well, it should take to much work to fix it :P better then starting from scratch, eh?
pwnisher3 3 months ago