Click to See Complete Forum and Search --> : Building windows application
RY33
March 10th, 2003, 07:08 AM
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).
pareshgh
March 10th, 2003, 03:55 PM
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
WillemM
March 11th, 2003, 01:06 AM
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.
WillemM
March 11th, 2003, 01:22 AM
Here's the sample
RY33
March 11th, 2003, 03:28 AM
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?
WillemM
March 11th, 2003, 10:45 AM
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 :)
pareshgh
March 11th, 2003, 07:45 PM
i should say
handling MDI application is bit tricky..
need to keep track of current window etc..
;)
WillemM
March 13th, 2003, 04:29 AM
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.
pareshgh
March 13th, 2003, 01:25 PM
Herez the MDI application that you are looking for.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.