Sets the properties of the form
Properties panel :(3 ways)
-
Right-click above the form — Properties/F4 / View
-
By code: form’s unique identifier. Attribute name = attribute value
Common attributes:
BackColor | Set the background color |
---|---|
BackgroundImage | Setting the background image |
Cursor | Shape of mouse cursor |
HelpButton | Whether to display the help button (cannot appear at the same time as maximize and minimize) |
Icon | The icon in the upper left corner |
MainMenuStrip | Point to Menustrip for this form |
MaximizeBox | Maximize button |
MaximunSize | Set maximum size |
MinimizeBox | Minimize button |
MInimumSize | Set minimum Size |
Name | The unique identifying name of the form |
ShowIcon | Determines whether the form displays ICONS |
ShowInTaskbar | Whether to display on the taskbar |
Size | Sets the size of the form |
Text | Title of form |
StartPosition | The position where the form first appears |
TopMost | Top or not (always at the top of the screen) |
Name: To get the foreground control object in the background, use the Name property.
Tip: If you don’t want the user to resize the form with the mouse, set the maximized and minimized values to the same.
Double-click the form —- and enter the code shown on line 22 to change the form title,
Note: This keyword is used instead of form unique identifier (Name).