简体   繁体   中英

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

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.

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

替代文字

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM