Based on Opening Word document within C# that has spaces in the path. I'd like to ask how to do the same but when the path is acquired from list box. I know that if I use @"path"
it will work, but how do I do the same to listBox.SelectedItem.ToString()
when opening
var _p = new Process();
_p.StartInfo.FileName = "Word.exe"
_p.StartInfo.Arguments = lbFiles.SelectedItem.ToString();
Let's say I want to open "C:\new word document.docx". Word gives an error can't find path "C:\new.doc" any ideas how to do it.