Fundamentals of Windows Programming

Source: Internet
Author: User

1. Controls ()

When using Windows forms, you are using the System.Windows.Forms namespace

Most controls are derived from the System.Windows.Forms.Control class

1.1 Control Properties

How to respond when the container size of the Anchor control changes

Enable whether to receive user input

1.2 Positioning, docking, and alignment of controls

1.3 Events

3 Basic ways of handling events

<1> Double-click Controls

<2>properties window in the Events list, click the lightning bolt icon to display the events list

Double-click the event in the events list to

<3> Add code to subscribe to the event

2.Button controls

System.Windows.Forms.ButtonBase derived from the control class to implement the basic functionality required by the button control

3 controls derived from Buttonbase:<1>button <2>checkbox <3>radiobutton

2.1 The properties of the button control

FlatStyle popup appears as a plane until the mouse is moved up to display as 3D

3.Label and Linklable controls

Label Purpose: Display text on a form

Label standard Windows tab, linklable displayed as Internet link

4.TextBox controls

Purpose: User input text

The. Net Framework contains two basic controls to extract user input text: <1>textbox <2>richtextbox

A bit more, self-check

5. RadioButton and checkbox

RadioButton: Property checked Indicates whether the control state is selected

Event checkedchanged check OPTION changed trigger

    

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.