I have a textbox that has a value depends on the Path of the file after dragging the folder. the return value of dragged folder is "C:\Program Files"
.
and I want to add the char "\"
on the textbox, but if I add that character, there is an error such as red line below my code, the example of a red line is when you misspelled a word in a document.
code:
txtResult.Text + "\" + textFile + ".txt"
Question:
what is the main reason that this string value does have an error?