Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Form2_Load(object sender, EventArgs e)
- {
- OpenFileDialog openFileDialog1 = new OpenFileDialog();
- openFileDialog1.FileName = "Test.rtf";
- string strfilename = openFileDialog1.FileName;
- string filetext = File.ReadAllText(strfilename);
- richTextBox1.Text = filetext;
- }
Advertisement
Add Comment
Please, Sign In to add comment