Opening non modal forms inside of an MDI parent
* This article, and all our great .NET Development documentation, Is available on the .NET Development menu
Working with MDI applications in WinForms is straightforward—right up until you try to center a child form. Developers often assume that setting StartPosition = CenterParent will place the form in the middle of the MDI container, but MDI children don’t follow the same rules as modal dialogs. Instead, they ignore the setting entirely and appear in the top-left corner. In this article, we’ll walk through a simple, reusable pattern for opening MDI child forms centered inside the parent window, along with clean VB.NET examples you can drop into your project.
|