C # WinForm Resolves a problem when a subform is enlarged and the subform icon zooms in

Source: Internet
Author: User

When the subform is zoomed out, the icon for the subform occupies the main form's menu bar.

When the C # Subform is maximized, the icon runs to the front of the main form, causing the interface to be not uniform or beautiful.

So it needs to be processed as long as there is a menu ItemAdded event in the main form that adds the following code:

if (E.item.text.length = = 0 | | e.item.text = = "Restore (&r)" | | e.item.text = = "Minimize (&n)")
{
E.item.visible = false;
}

When you run the check again, you'll find that only one is closed, similar to Word style. If you want other buttons, set the | |

C # WinForm Resolves a problem when a subform is enlarged and the subform icon zooms in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.