Guest User

Untitled

a guest
Mar 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1.  
  2.         private void Form2_Load(object sender, EventArgs e)
  3.         {
  4.             OpenFileDialog openFileDialog1 = new OpenFileDialog();
  5.             openFileDialog1.FileName = "Test.rtf";
  6.  
  7.             string strfilename = openFileDialog1.FileName;
  8.             string filetext = File.ReadAllText(strfilename);
  9.  
  10.             richTextBox1.Text = filetext;
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment