Detailed description of Windows Forms Application layout and forms Layout
The last time we used a basic control to create a Windows form application, we learned about some advanced controls and used ADO. NET technology to connect to the database to create a more powerful form application!
Menu Bar control MenuStrip
. NET provides a MenuStrip (menu bar control ), ImageScalingSize Size of the image displayed for items in the toolbar Items Set of items displayed on the toolbar
In the Items attribute editing window, you can add or delete Items, adjust the order of Items, and set attribute values for each item.
Main attributes and events of buttons and labels on the toolbar
Genus |
Description |
DisplayStyle |
Set the display mode of images and text |
Image |
Images displayed on buttons/labels |
ImageScaling |
Whether to adjust the size of the image displayed on the button/Tag |
Text |
Text displayed on buttons/labels |
TextImageRelation |
Button/label image relative to text |
Event |
Description |
Click |
This event is triggered when you click a button or tag. |
RadioButtion)
Genus Description Checked Only whether the single-choice button is selected Text Text displayed by the radio button Event Description Click An error occurred while clicking the single-choice button.
Difference between GroupBox and Panel
GroupBox
Panel A group of controls used for logic combination to display a framework with a title on the Framework These controls are used to contain multiple controls so that they can be grouped into a group for easy operation. DateTimePicker)
Genus Description MaxDate Set the maximum date and time. MinDate Get the set minimum Date and Time Value Date/time value selected by the Control Format Used to set the format of the date and time displayed in the control