title: How do I write a backslash (\) in a string?
body: <p>I want to write something like this <code>C:\Users\UserName\Documents\Tasks</code> in a <code>textbox</code>:</p>
  
  <pre><code>txtPath.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)+"\Tasks";
  </code></pre>
  
  <p>I get the error: </p>
  
  <blockquote>
    <p>Unrecognized escape sequence. </p>
  </blockquote>
  
  <p>How do I write a backslash in a string?</p>