Opening and Saving Mdi child forms
I am looking to save the current child form and be able to open the child form. It is like a simple text editor like notepad. I also need to add controls to the child forms for saving. I also want to display the file name in the title bar of the opened document.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Mar 6, 2011, 7:30 AM EST
What is you problem?
At which line error is raising ?
Or do we develop your project ?
Joel Mack13 reputationPosted Mar 6, 2011, 9:37 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Mar 6, 2011, 2:04 PM EST
I don't understand what is meant by saving and opening a form. The best I can think of is that forms are opened by showing the form as in Form.Show().
It is interesting to me that in C++ using MFC (it's a C++ thing but cannot be used without C++) projects were created with code that already did most of this (as in my Simple CEditView Application). I suspect that there is a way to generate a C# program that does most of this but I have not looked for it.
Are you sure you have looked at all the relevant articles in this web site?
Suthish NairRank #92 · 22.8K reputationPosted Mar 7, 2011, 9:37 AM EST
Joel Mack13 reputationPosted Mar 7, 2011, 11:43 AM EST
FroglegRank #1,020 · 1.9K reputationPosted Mar 8, 2011, 10:25 AM EST
Joel Mack13 reputationPosted Mar 8, 2011, 11:29 AM EST
FroglegRank #1,020 · 1.9K reputationPosted Mar 8, 2011, 11:41 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Mar 8, 2011, 1:05 PM EST
Perhaps you just need to know to set the Multiline property to true. Without that, a TextBox control uses only one line. Then the next trick is to go to the Dock property of the TextBox and set it to the big box in the middle. I know, you don't understand what I mean by big box in the middle but trust me; if you click on the Dock property you will understand. That is an easy way to make a control fill an entire form.