Controls in container form come over child form?

后端 未结 8 2190
天涯浪人
天涯浪人 2020-12-01 20:40

In a container form I have menu and buttons to open ther forms. \"enter

Here I am fac

8条回答
  •  伪装坚强ぢ
    2020-12-01 20:49

    @Hans Passant has the correct answer, but you could also solve your issue by not using MDI forms at all. Some options:

    • Use separate forms: have a menu form, typically large/maximized, and launch child forms in front of it by setting their Parent property to the menu form, or
    • Use a single form, but with a docking library (I've used DockPanel Suite in the past). This is essentially a re-implementation of MDI forms, with extra features. This is a bit of work to get running, but it can let you build some nice UIs.

    Both of these would require significant changes to your UI code, though.

提交回复
热议问题