Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FastColoredTextBox textBox = TabControl1.SelectedTab.Controls.Find(("ClonedTextBox"), true).FirstOrDefault() as FastColoredTextBox;
- -- save dialog button:
- SaveFileDialog sfd = new SaveFileDialog();
- sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
- if (sfd.ShowDialog() == DialogResult.OK)
- {
- Stream s = sfd.OpenFile();
- StreamWriter sw = new StreamWriter(s);
- sw.Write(textBox.Text);
- sw.Close();
- }
Add Comment
Please, Sign In to add comment