richtextbox
-
hello how can load one file to RichTextBox?
-
hello how can load one file to RichTextBox?
that would be simple for google. By the way google is smart more than us, you can try asking it from time to time for basic questions like this
-
that would be simple for google. By the way google is smart more than us, you can try asking it from time to time for basic questions like this
-
hello how can load one file to RichTextBox?
-
hello how can load one file to RichTextBox?
Hi, If its just the file you need to open and view the contents into a RichTextBox, you can use the OVERLOADED LoadFile() function which accepts a filename (filepath) as a string and a RichTextBoxStreamType as an another parameter Eg. this.richtextBox.LoadFile("c:\\temp.xxx", RichTextBoxStreamType.RichText). The RichTextBoxStreamType.RichText should be used , if the cile to be opened in the RichtextBox is of RichTextType. Refer MSDN for other flavors of RichTextBoxStreamType ENUM.
Thanking you in Advance Regards Pratik Shah
-
hello how can load one file to RichTextBox?
another good guy with goooooogle :) You can load multiple files into RichTextBox one simple way : load the files into separate buffers (dont use RichTextBox.LoadFile or something)... and then set's these buffers with the += .. : System.IO.TextReader tr1 = new System.IO.StreamReader("filename1.txt"); string s1 = tr1.ReadToEnd(); ... richtextBox.Text += s1; and so on :)
VirtualVoid**.NET**