C # Winform custom title bar

I said the title bar means:

The default style ugly, can not be changed. We can customize a title bar, in addition to the style can be flexibly set, you can also add a variety of menu buttons they have to, not Miya?

practice:

In the Form Design Window

1) Set the Text property value is empty 2

2) Set ControlBox is false;

Note: You can also ignore 1,2. Directly FormBorderStyle to none. But this way the border can not be dragged to change the window size.

 

Guess you like

Origin www.cnblogs.com/PER10/p/11541534.html