C # control series-text controls mainly include label, linklabel, button, Textbox, and RichTextBox. Label is used to display text information that cannot be changed directly. Attribute
- Image -- specify the image displayed on the tag.
- Text -- this attribute is the text associated with the file.
- Name -- Name of the object.
- Autosize -- if this attribute is true, auto-scaling is enabled Based on the font size. Note that this is only valid for label controls that do not wrap text.
- Enabled -- whether to enable the control.
- Visible -- visible or hidden.
Method
- Contains -- retrieves a value that indicates whether the control is a child control of a control.
- Createcontrol -- force create a control, including the create handle and no matter what child control.
- Refresh -- force the control to invalidate its Workspace and re-paint itself and any child control immediately.
- Select -- activate the control.
- Show -- set the visible attribute to true and display the control.
- Hide-hide controls.
- Setbounds -- set the control boundary.
- Update -- make the control re-paint the invalid area in its workspace.
Event
- Keypress -- occurs when the tag has focus and the user presses a key.
- Keyup -- occurs when the tag has focus and the user releases a key.
- Click -- click the tag to trigger.
- Paint -- this event occurs when the widget is repainted or updated.
Linklabel
C # control series-text controls