I have 2 forms and on :
Form_1 I have : 1_button + 1_richTextBox
Form_2 I have : 1_button
When I click the button from my Form_2 open a FileDialog window to select a txt file and with StreamReader I read the content and send it to be placed in the richTextBox from my Form_1
It works but only...
Thanks for your reply Martin but if I would done it like that it would have put all my lines from richTextBox on a single line in my txt file.
I mean :
Let say that I would have this lines in richTextBox
TEST 1
TEST 2
TEST 3
When I would save it in my TXT file I would have:
TEST 1TEST 2TEST...
Thank you (Jason Meckley) for your reply I tried and didn't work but I figured out how to do it and it work
For anybody who will have the same problem, they must change SaveFile to:
SaveFileDialog DialogSave = new SaveFileDialog();
DialogSave.ShowDialog();
string path...
Hello all,
I've made a program using gui to open the content from a .TXT file in a richTextBox and to save it in another .TXT file
My GUI has
2 butons + 1 richTextBox(OpenFile, SaveFile, richTextBox)
- when I click OpenFile button a dialog window launch and ask for a .TXT file and put the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.