The Winform custom form style allows you to flexibly customize the title bar. The winform title bar

Source: Internet
Author: User

The Winform custom form style allows you to flexibly customize the title bar. The winform title bar

I recently wanted to create a desktop application. I referred to various popular software and found that most software's title bars are customized, even without a title bar. The entire window is a whole.

The default title bar does not affect the consistency of the software style, especially when you set the background image.

So I found some technical posts shared by the experts and shared my experiences with you.

Reference link: http://www.cnblogs.com/zuowj/p/4133574.html? Utm_source = tuicool & utm_medium = referral

 

[Key notes]

The main process can be divided into two parts:

Operation Process: Hide the title bar

The simple hiding method is to set the FormBorderStyle attribute of the Form windowFormBorderStyle. None.

However, the window size cannot be modified.

Another solution is to set the ControlBox attribute of the Form windowFalseAnd Text is set to null. Let's take a look.

  • Standard Style

  • Set ControlBox to False

 

  • Text is set to null

 

Customized title bar

If you do not need a title bar, ignore this part of content.

There are many customized solutions. The simplest way is to add a top Panel and put the min/max/Close button.

 

Related Article

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.