Jack Jack - 5 months ago 20
Vb.net Question

How to use multiple textbox entries in part of a url in vb?

I'm making a visual basic program, and I'm trying to make a button go to a link, but two parts of the link need to come from text boxes. I know how to make it go to the url in the text box entry, but I need to know how to make it go to a preset url, only with two parts of the url coming from text box entries.

I tried ("example.com/test?ex="(TextBox1.Text)"?nl="(TextBox2.Text))

and that didn't work. Please help
Thanks!

Answer
Process.Start("example.com/test?ex=" & TextBox1.Text & "?nl=" & TextBox2.Text)

Or, in Visual Studio 2015 you can use Interpolated Strings:

Process.Start($"example.com/test?ex={TextBox1.Text}?nl={TextBox2.Text}")