C # control series-text controls

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.