Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. private void zapiszToolStripMenuItem_Click(object sender, EventArgs e)
  2. {
  3. if (saveFileDialog1.ShowDialog() == DialogResult.OK)
  4. {
  5. richTextBox1.SaveFile(saveFileDialog1.FileName, RichTextBoxStreamType.PlainText);
  6. }
  7. }
  8.  
  9. private void wczytajToolStripMenuItem_Click(object sender, EventArgs e)
  10. {
  11. if (openFileDialog1.ShowDialog() == DialogResult.OK)
  12. {
  13. richTextBox1.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.PlainText);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement