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.
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.