This tutorials describes about Multiple Document Interface.
MDI (Multiple Document Interface) is nothing but a way of displaying windows form where there is at least one parent and many child windows e.g. word Excel PowerPoint kind of windows where each document, sheet or slide act as a child under the parent container window.
SDI (Single document Interface) examples are Windows Explorer, Internet explorer, Notepad etc...where only one window acts as an interface.
If you are a beginner (or intermediate) and want to develop an MDI application with basic functionality using the powerful C# language checkout the following step-by-step guide to develop. Even people coming from VB6 background face lots of problem because of the pure OOPs usage in C#. Follow this small step by step walkthrough to make a small MDI application.Goto File->New->Blank Solution Select Visual C# Projects in Project Types Select WindowsApplication in Templates Type for eg. myBestMDI in the Name textbox By Clicking the browse button select the location & Click OK Creating the necessary forms & code themCreating the main MDI form (frmMDIMain) to act as a container
Creating the child form (frmMChild) to demonstrate multiple instance
Creating the child form (frmSChild) to demonstrate Single instance
Creating the About form (frmAbout) to give information about this product
Creating the Splash form (frmSplash) to display the welcome information with company logo
Adding a timer control to the splash screen for holding it for few seconds so that the user can read it.
Adding two classes 1 to act as the Main startup class (clsMain) & 1 for holding Global objects (clsGlobal)
using System.Windows.Forms;
Now go to frmMain now and from its code window remove the following piece of code[STAThread]static void Main() {Application.Run(new Form1());}//because we cannot have two Main function.We are invoking everything from clsMain
Creating menus in the main MDI form
Putting life in the menus created by adding code to it
Node Js and Angular CheatSheet