Well the title says most, and i thank everyone who helped me with my last problem. But right now i was working on creating my own small wanna-be notepad. But when i use the function:
Form1.CommonDialog1.Filter = "Text Files (*.TXT)|*.TXT|All Files (*.*)|*.*"
Form1.CommonDialog1.ShowSave
Form1.RichTextBox1.SaveFile (Form1.CommonDialog1.FileName)
Form1.Caption = Form1.CommonDialog1.FileName & ""
Then save through that it gives you all sorts of garbage before the text you really want is shown. An Example of what i mean. The text is suppose to be test, but it comes out like this:
{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fswiss MS Sans Serif;}}
{\colortbl\red0\green0\blue0;}
\deflang1033\pard\plain\f2\fs17 --> test <--
\par }
I went and tried to look for other examples but they were using things like
cd1.ShowSave
And stuff like that, and when i searched through the code it had nothing declaring cd1.
Please help, thanks!




Reply With Quote