Skip to content

MenuBar should be Dock = Top #967

Closed
Closed

Description

@itg-assistant

Tiago (ITG) asked 2017-07-27 22:57:46 UTC

I don't know whether this is an issue or by design.

When I drag the MenuBar from the toolbox and drop it on a windows, I expect it to Dock = Top as it happens with the ToolBar. In fact it isn't docked at all.

On second thoughs, I wonder what's the difference between MainMenu and MenuBar. Do we need a MainMenu?

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-07-31 00:35:20 UTC

    The MainMenu doesn't take space from the client area, participates in the Mdi merged menu system, doesn't scroll with the client area content.

    The MenuBar is simply a panel that contains a menu and can be used like any other control. The default is DockStyle.None because it can be used like a normal control anywhere in the container.

    Best,

    Luca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn improvement to something that already works.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions