Me.IsMdiContainer = True Dim frm2 As New MDIForm() frm2.MdiParent = Me frm2.Show()
The MDIList panel lists all of the open MDI child windows in an MDI application.
Setting up MDIList style Panel at Design-Time
Add a UltraStatusBar to your Windows Form.
In the Property window scroll down to the Panels Property. Click the ellipsis to bring up the Panels Collection.
Click the "Add" button. This will add a new panel.
Set the Style property of the panel to "MDIList". Click OK.
In the Solution Explorer, add another form called "MDIForm." Add a button, with the following code behind it:
In Visual Basic:
Me.IsMdiContainer = True Dim frm2 As New MDIForm() frm2.MdiParent = Me frm2.Show()
In C#:
this.IsMdiContainer = true; MDIForm frm2 = new MDIForm(); frm2.MdiParent = this; frm2.Show();
Run your project. Each time you click the button a new window is added. For each child window in your application there will be an icon in the your status bar panel. If you click on that icon, it will bring the corresponding MDI child window to the front and make it active. In this simple example, all the windows have the same name, and same image; In a real-world application, you would vary these details.
Setting up MDIList style Panel at Run-Time
You can also create an MDIList panel at run time. The following example code below shows how to do this.
In Visual Basic:
Imports Infragistics.Win.UltraWinStatusBar ... Me.UltraStatusBar1.Panels.Add("MDIList", PanelStyle.MDIList)
In C#:
using Infragistics.Win.UltraWinStatusBar; ... this.ultraStatusBar1.Panels.Add("MDIList", PanelStyle.MDIList);