One of the WinForm form applications (preliminary), winform
To learn how to create a WinForm program, you must first master two things. The first part is called the property panel. Both forms and controls have their own property panels. The second part is what we call controls.
Let's first discuss the attribute panel. Create a WinForm program and press F4 to view the property panel.
We have to say that the various attributes are complicated. Here, I only record some common attributes and classify them.
1. form style attributes:
(1) Name refers to the Name of the form, which is usually the unique identifier. Each control has a Name as its identifier.
(2) AutoSize: the automatic size is adjusted based on the content of the form.
(3) Size
(4) Position on the screen when the StartPosition program is started. CenterScreen is displayed in the center of the screen.
(5) Icon
2. content style attributes
(1) BackgroundImage background image
(2) Arrangement of BackgroundImageLayout background images
(3) Font
(4) ForeColor foreground color/font color
(5) Text subject Text content
It should be said that there are actually many attributes. However, I believe that we do not have to master all the attributes before we can start to create a program. On the contrary, as long as we first get familiar with those attributes that are frequently used, as for other attributes, it is enough to think about them.