Thomas
Thomas

Reputation: 34188

How to attach menu control with panel in c#

When we place a menu control in a form it attaches to the form at the top. Suppose there is a panel in my form and I want to attach a menu control to it rather than the form. How could i do it? Please help me to achieve it.

thanks

Upvotes: 1

Views: 2711

Answers (2)

George Johnston
George Johnston

Reputation: 32258

Click on your menu strip. Cut it. Ctrl+X. Click on your panel. Paste it. Ctrl+V.

The menu will persist it's docked property, which is defaulted to the Top of the parent control.

Upvotes: 3

Mayank
Mayank

Reputation: 1631

You just place the menu strip inside a panel. Nothing fancy as by default the Dock property is set to "Top".

alt text

Upvotes: 3

Related Questions