A
AxOn
Hi,
I have an application with a Save function. I want to be able to have
several tabs(each containing a RichTextBox, created at runtime) open in
a tabControl and save the text from each RichTextBox one at a time. The
plain text is loaded into the RichTextBoxes via an openFile funktion
that creates a new RichTextBox. When the file is opened the name of the
new RichTextBox and the name of the file is stored in a Hashtable like
so:
this.boxen.richTextBox1.Name = "box" + this._pageCount.ToString();
this._pageCount += 1;
this._richTextBoxToFileName[this.boxen.richTextBox1.Name] =
openFileDialog1.FileName;
How can I save the contens of the RichTextBox in the selected tabPage.
Can I some how choose the RichTextBox when I know it's name or name the
RichTextBox that i want to save at runtime??
Thanks!
I have an application with a Save function. I want to be able to have
several tabs(each containing a RichTextBox, created at runtime) open in
a tabControl and save the text from each RichTextBox one at a time. The
plain text is loaded into the RichTextBoxes via an openFile funktion
that creates a new RichTextBox. When the file is opened the name of the
new RichTextBox and the name of the file is stored in a Hashtable like
so:
this.boxen.richTextBox1.Name = "box" + this._pageCount.ToString();
this._pageCount += 1;
this._richTextBoxToFileName[this.boxen.richTextBox1.Name] =
openFileDialog1.FileName;
How can I save the contens of the RichTextBox in the selected tabPage.
Can I some how choose the RichTextBox when I know it's name or name the
RichTextBox that i want to save at runtime??
Thanks!