When I create a new project, I can start windows application.
In this project there is by default a form.
How do I create an application like SDI application (something that looks like notepad).
Printable View
When I create a new project, I can start windows application.
In this project there is by default a form.
How do I create an application like SDI application (something that looks like notepad).
there isn't a built in support like VC++ did
In VC++ you could make Notepad easily
in C#
may be you could search for .wiz files which is known as wizard files which can generate-automate the project for you.
Paresh
Create a new windows forms application in C#, add a richtextbox to your form and a mainmenu, fit in some menu items like: File->New; File->Open; File->Save; File->Exit. Then you will need a fileSaveDialog and a FileOpenDialog. Put code behind the menu items open and save to call these dialogs the open or save the file made in the richtextbox. It shouldn't be that hard to make :)
I will post a sample for you.
Here's the sample
10x a lot for your sample.
I saw the MSDN sample scribble.
There is instead of the form a "MainWindow", and inside there is a MdiClient.
Do you know how can I do it?
You will need to make another form. In this form you place the richtextbox from form1.
Also you need to set IsMdiForm to true (of form1).
The code in MenuItem2_Click will need to be replaced with this:
Form2 frm = new Form2();
frm.MdiParent = this;
frm.Show();
Also the other functions will need to be different. I will post a sample for that tomorrow :)
i should say
handling MDI application is bit tricky..
need to keep track of current window etc..
;)
Yep, it sure is :)
I am really sorry, I will be out for a few days. So, that sample is coming a little bit later.
Herez the MDI application that you are looking for.