In the morning, I flipped through the C # book, designed a simple Windows desktop program, and made some of the most common controls. The simplicity is simple. I 'd like to record the results ..
Used control: Label button textbox
Purpose: To enter the name and age and return the entered content
The content is very simple, but it's just an entry, ready? Go!
First, create a Windows application named numbertest.
Next, start the design, find the above control in the control list, and drag it into the form
After the control is dragged, right-click it to find the "attribute" value and modify its name and text content in the attribute list:
(Attribute example) the attribute value of the specified textboxr is: (only part of the attribute content is intercepted here)
Set the name and text of all controls in form in the above method (the name and text values correspond to the following)
Labelbox: Name text: NULL
Labelbox: Age text: NULL
Label: info text: NULL
Label: info1 text: 0
Label: result text: Condition
Button: sumit text: Submit
Button: reset text: reset
Next, double-click the "Submit" and "reset" controls and add the following code:
Running result:
Initial interface:
Submit result:
Reset result:
Conclusion: The above is my first small windows application. There are not many functions, but at least I know some basic usage of the control...