Several common controls common to C # Winfrom

Source: Internet
Author: User

How to use the ComboBox control:

//first write the query method, instantiate the object,nationdata nd =NewNationdata (); List<Nation> NN =NewList<nation>(); NN=nd. Selectnation (); nation. DataSource= NN;//Select a table to display in the drop-down menuNation. DisplayMember ="Nationname";//columns displayed in the drop-down menuNation. ValueMember ="Nationcode";//the columns to hideNation.nation.SelectedValue;//gets the value of the NationcodeNation. SelectedText;//gets the value of the Nationname

Label:

Textbox:

CheckBox: Check;

Button:

RadioButton: Radio;

Panel: In a container; with RadioButton;

The use of the method is very simple do not write;

NotifyIcon: After inserting the icon file, the taskbar appears in the lower right corner;

Datetamepicker: Perpetual calendar;

NUMBERICUPDOWM: Counter;

MaskedTextBox: Mask; You can set multiple types of formats;

The above is a few common common controls, the right property is roughly the same, and the form is inherited from control;

Several common controls common to C # Winfrom

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.