C# Panel As MDI Container

后端 未结 3 858
难免孤独
难免孤独 2021-01-14 02:44

In C# i want to create a panel that has the properties of a MDI container ie. isMdiContainer = true.

I tried something like this

form.MDIParent = thi         


        
3条回答
  •  离开以前
    2021-01-14 03:07

    You could create custom form, remove all borders, and toolbars to make it look as closely to a panel as possible. Then make that new custom form a MdiContainer.

    Basically, you can only set the IsMDIContainer property on a Form. This means that only a form can be a MdiContainer.

提交回复
热议问题