MDI Form Using C#.NET

Multiple Document Interface (MDI).  the  notepad is an best example of an SDI application. MDI applications often have a Window menu item with submenus for switching between windows or documents.

Step 1 

Open visual studio and create new project with proper name and path when you want to store your project.After give proper name,and path press OK button.your screen like below.




Step 2

Go to toolbox and select button form toolbox.


Step 3
drag and drop button form toolbox to form.after drag and drop button you screen look like below.



Step 4
right click on button go to propertices.and select text propert and change the value of the text property to 'open windows'.




step 5

Then after go to solution explore and select your project and right click on the project go to add opetion and select windows form. give different name.

After create second form. Double click on button of main windows form and type

Second sec = new Second();
sec.ShowDialog();

after write this code in button click event.run the application.


for more understand watch following video.







Comments

Popular posts from this blog

Create First Windows Form Application

MessageBox in C#.NET