I want to write something like this C:\Users\UserName\Documents\Tasks
in a textbox
:
txtPath.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)+"\Tasks";
I get the error:
Unrecognized escape sequence.
How do I write a backslash in a string?
Put a double backslash instead of a single backslash...