One week review:
Three primary Colors
Nature: Red, green and yellow
Self-calculation: red, green and blue
Hash value: The number of cases is fixed and the values corresponding to each case are fixed, and the values are different from each other
Enumerations: Defining types of hash values
modifier enum enum Name
{
Hash value
}
The Partial keyword-decorated class is called a partial class, indicating that the resource defined in the class is only a subset of the class's resources, and that other resources are in another or more partial classes
A form is essentially a class, and the From class is the parent class for all forms
Code Back (Code-behind)
1. Designer and Background code separation
2. Separation of custom code and automatic code using the technology of some classes
All controls have a Name property that represents the object name of the control
All controls are essentially classes, and their ultimate parent class is control
Name attribute naming specification: prefix + word
TextBox prefix: TXT
Label prefix: LBL
Button prefix: btn
1. How to get the current time of the string txttext.text=datetime.nex.tostring ();
2. When to execute code
Event: Indicates that something happened to an object, and he indicates the point in time at which the event occurred
Registering an event that requires the specified method to be run when an event occurs
Typically: The first object parameter of an event represents the event source, which refers to the object that raised the event
Paint event: The visible state of the control and the size change are occurring
C # Basics