Welcome to FoxLearn
In this tutorial, I'll show you how to load multiple forms in panel control
To play the demo, you can create a new Windows Forms Application, then open your Form designer
Next, Drag Label, Button, Combobox and Panel controls from the visual studio toolbox to your winform
A Panel is a control that contains other controls.
You can use a Panel to group collections of controls such as a group of RadioButton controls.
The Panel control is displayed by default without any borders.
You can provide a standard or three-dimensional border using the BorderStyle property to distinguish the area of the panel from other areas on the form.
You can create Form 2, 3...etc, then drag some controls from the visual studio toolbox to your winform.
We will use these Forms to add to the Panel control from the main Form.
You should set the TopLevel property to false and the TopMost property to true.
A top-level form is a window that has no parent form, or whose parent form is the desktop window.
Top-level windows are typically used as the main form in an application.
A topmost form is a form that overlaps all the other forms even if it is not the active or foreground form.
Topmost forms are always displayed at the highest point in the z-order of the windows on the desktop.
You can use this property to create a form that is always displayed in your application, such as a Find and Replace tool window.
You need to add all the FormBorderStyle properties to your combobox, so you can easily change the FormBoderStyle property when displayed.
Thank you for watching this video and don't forget to subscribe to my channel