title: How to put TextBox1.Text inside of string?
body: <p>I have this so far</p>
  
  <pre><code>Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim p As New ProcessStartInfo
      p.FileName = "java"
      p.Arguments =
      Process.Start(p)
      Close()
  End Sub
  </code></pre>
  
  <p>And after p.Arguments, I need something like <code>"TextBox1.Text ""-jar app.jar"""</code> but I know that will not work because I've tried it. I need the text in TextBox1 to be inserted into the string somehow. I want it to run... <code>java %TEXTBOX% -jar app.jar</code> How do I do this?</p>
  
  <p>EDIT:
  I have tried String.Format Method in combination with a lot of things - it never actually allocates memory to Java, just uses the default memory; 1gb. I have tried many, many methods and it either doesn't open, or it opens without allocating memory.</p>