VSBrowser
Member
- Joined
- Sep 21, 2010
- Messages
- 8
- Programming Experience
- Beginner
Hey Guys,
I am in the middle of making an advanced webbrowser and am stuck on one issue. I found a code on the internet which allows me to put images in a combobox via an imagelist. I have 3 Images 1 for google, 1 for Yahoo and 1 for Youtube. I have come up with a basic code but dont know how to set it so that when i have selected lets say yahoo(image) and type in the search textbox and clik search it will navigate to the images "website"
Image 1 is google
image 2 is youtube
image 3 is yahoo
I named the images
[0] Image1
[1] Image2
[2] Image3
Heres the code I have:
Public Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
If "This should be the selected image in the combobox(google)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.google.com/search?hl=en&q=" & TextBox1.Text & "&btnG=Google+Search&meta="}
End If
If "This should be the selected image in the combobox(youtube)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.youtube.com/results?search_query=" & TextBox1.Text & "&search_type=&aq=-1&oq=")
End If
If "This should be the selected image in the combobox(yahoo)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://au.search.yahoo.com/search?p=" & TextBox1.Text & "&ei=UTF-8&fr=moz35")
End If
End Sub
If you need anymore code of the combobox images please ask
Thanks
I am in the middle of making an advanced webbrowser and am stuck on one issue. I found a code on the internet which allows me to put images in a combobox via an imagelist. I have 3 Images 1 for google, 1 for Yahoo and 1 for Youtube. I have come up with a basic code but dont know how to set it so that when i have selected lets say yahoo(image) and type in the search textbox and clik search it will navigate to the images "website"
Image 1 is google
image 2 is youtube
image 3 is yahoo
I named the images
[0] Image1
[1] Image2
[2] Image3
Heres the code I have:
Public Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
If "This should be the selected image in the combobox(google)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.google.com/search?hl=en&q=" & TextBox1.Text & "&btnG=Google+Search&meta="}
End If
If "This should be the selected image in the combobox(youtube)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.youtube.com/results?search_query=" & TextBox1.Text & "&search_type=&aq=-1&oq=")
End If
If "This should be the selected image in the combobox(yahoo)" Then
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://au.search.yahoo.com/search?p=" & TextBox1.Text & "&ei=UTF-8&fr=moz35")
End If
End Sub
If you need anymore code of the combobox images please ask
Thanks
Last edited: