Jack Jack - 1 year ago 82
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

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

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