Aleksander Wind

Aleksander Wind

  • 1.9k
  • 8
  • 101

RichText LoadFile/SaveFile function for normal text

Mar 16 2020 8:33 AM
I know that LoadFile works for RichText, but is there an alternative, if i want to use a simmilar function for normal text?
 
Thank you in advance
  1. private void button Open_Click(object sender, EventArgs e)  
  2. {  
  3.    if (openFileDialogNotes.ShowDialog()==DialogResult.OK)  
  4.       {  
  5.          textBoxMain.LoadFile(openFileDialogNotes.FileName);  
  6.       }  
  7. }  
P.S. is there an alternative for the SaveFile funtion too?

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)