MDI Parent Form Usage with Visual Studio

If we want to write a comprehensive windows form application with Charp, visual studio will help us a lot in this regard. The MDIParent form that comes with standard tabs and menus is just for us. We take our first step to write a new windows form application by clicking the New tab in Visual studio.
In Solution Explorer, right click on the project, select MDI Parent Form from the Add New Items tab, name it as we like and press OK to create the main body. In my applications, I generally prefer to call this form that forms the skeleton “body”, like the body tag we use in HTML.
We have seen the main form, right? Now we make F5 and run our application. But the body does not work. Only an empty form window named Form1 opens. Immediately come to the Program.cs section of our application and write the following codes:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace ilkformapp
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new govde());
}
}
}
C#MAKE A COMMENT
COMMENTS - 0 COMMENTS