HI , I am new here and I am beginner at C sharp
so my question is:
I want to load file at richtextbox
so I write this code and it worked :
Code:
DialogResult result = this.openFileDialog1.ShowDialog();
            if (result == DialogResult.OK)
                this.richTextBox1.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.PlainText);
but that open just txt files and I want to open all the types of files without make if for each extension , is there anyway for that
thanks ...