I honestly have no idea whether this is the wrong forum or not. But it seems like the most appropiate one.
I'd suppose this would be a very simple question, and I'm a complete newbie at this.
I've got a textbox and a button. I want to be able to put in a keyword(s), for a search. For example on google. I use this:
What I want to do is open a new firefox window and search for the keyword put into "TextBox1". It does work, sorta. The only problem is if I put multiple keywords in (seperated by space). Then it opens 2 windows. 1 with the first word (keyword1 - Google-søgning), and another one (http://keyword2/).
Any ideas on how to fix this?
I'd suppose this would be a very simple question, and I'm a complete newbie at this.
I've got a textbox and a button. I want to be able to put in a keyword(s), for a search. For example on google. I use this:
VB.NET:
Const GOOGLE_SEARCH As String = "http://www.google.dk/search?q="
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("C:\Program Files\Mozilla Firefox\Firefox.exe", GOOGLE_SEARCH & TextBox1.Text)
End Sub
What I want to do is open a new firefox window and search for the keyword put into "TextBox1". It does work, sorta. The only problem is if I put multiple keywords in (seperated by space). Then it opens 2 windows. 1 with the first word (keyword1 - Google-søgning), and another one (http://keyword2/).
Any ideas on how to fix this?