about richtextbox
-
I have a problem when using richtextbox. I use richtextbox to display the content of a file. In the richtetxtbox, it automatically inserts a space in the first word. For example, in my file " Doctor John is very kind". And in my richtextbox "D octor John is very kind". Why do I meet this problem and how can I overcome this problem? Thanks a lot.
-
I have a problem when using richtextbox. I use richtextbox to display the content of a file. In the richtetxtbox, it automatically inserts a space in the first word. For example, in my file " Doctor John is very kind". And in my richtextbox "D octor John is very kind". Why do I meet this problem and how can I overcome this problem? Thanks a lot.
What type of file are you trying to load, and which richTextBoxStreamType are you using?
-
What type of file are you trying to load, and which richTextBoxStreamType are you using?
here is my function to load the file void OpenFile() { openFileDlg.DefaultExt = "*.txt"; openFileDlg.Filter = "Text Files|*.txt"; if(openFileDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK && openFileDlg.FileName.Length > 0) { rtxt.LoadFile(openFileDlg.FileName, RichTextBoxStreamType.UnicodePlainText); } }
-
here is my function to load the file void OpenFile() { openFileDlg.DefaultExt = "*.txt"; openFileDlg.Filter = "Text Files|*.txt"; if(openFileDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK && openFileDlg.FileName.Length > 0) { rtxt.LoadFile(openFileDlg.FileName, RichTextBoxStreamType.UnicodePlainText); } }
Load it as PlainText instead of UnicodePlainText This should solve your problem James
-
Load it as PlainText instead of UnicodePlainText This should solve your problem James