I have developed a Text Editor in WinForms. you can download it from here and use it. It works fine. But when I right-click a text file in Windows Explorer and try to open it, it doesn't show it.
I have searched solution for this on Web, but failed. Can you suggest a resolution to this.
Or should I use RichTextBox.
I also tried to create a simple Test project with RichTextBox
and used LoadFile()
.
// Load the contents of the file into the RichTextBox.
richTextBox1.LoadFile(openFile1.FileName, RichTextBoxStreamType.RichText);
This caused a file format error.