title: How to remove text in visual basic
body: <p>I want to make a CMD command by vb, if <code>textbox1.text</code> contains CMD then it remove "CMD " and it take the rest of text and (Call shell) of it</p>
  
  <p>example:( CMD SHUTDOWN -t 15 ), then it delete "CMD " and it take "SHUTDOWN -t 15" to (Call Shell) to it</p>
  
  <p>this is my code... and of course it's not working : </p>
  
  <pre><code>Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   If TextBox1.Text.Contains("CMD") = True Then
    TextBox1.Text.Remove("CMD ")
    Call Shell(TextBox1.Text)
   End If
  End Sub
  </code></pre>