The Form.startposition property that determines where the form first appears. This is set to display in the middle of the parent form.
This. StartPosition = formstartposition.centerparent;
Form.helpbutton property to determine if there is a Help button on the title bar of the form. The settings appear to be more user-friendly, but the help function is not necessarily implemented.
This. HelpButton = true;
Form.maximizebox property to determine if the upper-right corner of the form's title bar has a maximized box. Settings don't let her show.
This. MaximizeBox = false;
Form.minimizebox property to determine if there is a minimized box in the upper-right corner of the form's title bar. Setting does not let him show.
This. MinimizeBox = false;
The Form.showicon property that indicates whether the icon is displayed in the title bar of the form. Settings are not displayed.
This. Showicon = false;
Form.showintaskbar property to determine whether the form appears in the Windows taskbar. This certainly saves valuable space in the taskbar.
This. ShowInTaskbar = false;
The Form.formborderstyle property that indicates the appearance and behavior of the form's border and title bar. Setting this property will not allow dragging to resize the form, and the Icon property will be invalidated without displaying the form title bar picture.
This. FormBorderStyle = FormBorderStyle.FixedDialog;
Form.controlbox property to determine whether the form has a control/system menu box. This setting allows you to hide the control buttons for the title bar. At some point it is necessary to set to False, and the title bar will no longer have a control button.
This. ControlBox = false;
Set the background color of a form
This. BackColor = color.black;//Black
Get the width and height of the screen
int screenwidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
int screenheight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
To set the window state of a form to maximized
this. WindowState = formwindowstate.maximized;