Controls

A form is only a container. These fourteen lessons are the controls a WinForms application is made of, one or two at a time: the label and the button, the text box, the check box and the radio button, the list controls, the numeric and date controls, the progress bar and the timer, the picture box and the rich text box, the two provider components, and the properties that every control has. Each lesson builds a complete form and describes what the control does, without running a window.

009 Label AutoSize, TextAlign, the access key in the text, LinkLabel and LinkClicked Open 010 Button Click, DialogResult, Enabled, FlatStyle, the default button and the Cancel button Open 011 TextBox Multiline, PasswordChar, PlaceholderText, MaxLength, ReadOnly, TextChanged, and a filter that runs headless Open 012 CheckBox and RadioButton Checked, CheckState for three states, AutoCheck, one radio button per group Open 013 GroupBox a container that groups radio buttons, its Controls, Enabled as a group Open 014 ComboBox DropDownStyle, Items, SelectedItem, SelectedIndex, SelectedIndexChanged Open 015 ListBox and CheckedListBox selection modes, SelectedItems, CheckedItems, CheckOnClick Open 016 NumericUpDown and TrackBar Minimum, Maximum, DecimalPlaces, ValueChanged, ticks and scroll Open 017 DateTimePicker and MonthCalendar formats, Value, MinDate, SelectionRange, DateChanged Open 018 ProgressBar and Timer Value, Marquee, Interval, Tick, Start and Stop, the timer on the UI thread Open 019 PictureBox SizeMode, Image, ImageLocation, ErrorImage, WaitOnLoad Open 020 RichTextBox SelectionFont, SelectionColor, LoadFile, SaveFile, DetectUrls, the RTF format Open 021 ToolTip and ErrorProvider SetToolTip, SetError, BlinkStyle, IconAlignment, a validation message without a message box Open 022 Properties, tab order and access keys Text, Name, Tag, Enabled, Visible, TabIndex, TabStop, Focus, the ampersand in a caption Open

Lessons