I'm working on cook book Windows project, and I prepared some .rtf files to load it in RichTextBox
.
The problem is that the path of the file can't work at any computer, just mine.
The code I used:
richTextBox1.LoadFile("C:\\Users\\nardeen\\Desktop\\cookproject\\cookingproject\\italian.rtf", RichTextBoxStreamType.RichText);
In addition I tried with this but it didn't work:
string FilePath = System.Windows.Forms.Application.StartupPath + "\\italian.rtf";
richTextBox1.LoadFile(FilePath, RichTextBoxStreamType.RichText);