C # control introduction,

Source: Internet
Author: User

C # control introduction,
TextBox txtProperty: Member:. Text // obtain the input string
DataGridViewProperty: AutoSizeColumnsMode: Fill Member:. DataSource // receives a DataTable to display the Query Information
ComboBox (drop-down box) cboProperty: Member:. DataSource // get or set a DataTable to display the Query Information (get or set the data source of this ComboBox .). DisplayMember // obtain or set the attribute to be displayed for this ListControl. String = dt. Columns [""]. ToString (). ValueMember // gets or sets an attribute that is used as the actual value of the item in ListControl. String = dt. Columns [""]. ToString () // No @. SelectedIndex // selected place int. SelectedValue // the string of the selected object. ToString ()
CheckBox (check box) chbProperty: Member:. CheckState // get or set the selected state (= CheckState. Checked)
RadioButton (single listener) rdbtn attribute: Member: private void rdbtnM_CheckedChanged (object sender, EventArgs e) {RadioButton rb = (RadioButton) sender; sex = rb. text;} private void rdbtnF_CheckedChanged (object sender, EventArgs e) {RadioButton rb = (RadioButton) sender; sex = rb. text ;}

Related Article

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.