August 2003
Intermediate to advanced
736 pages
14h 48m
English
The basic unit of the user interface in WinForms is the control. Everything that interacts directly with the user in a region defined by a container is an instance of an object that derives, directly or indirectly, from the System.Windows.Forms.Control class.
Non-container controls are those that don't contain other controls.
The Label control, shown in Figure D.13, holds literal text that is meant to be informative to the user. For example, in a typical application, labels are displayed near text boxes to inform the user what the text box contains. Text inside a label wraps to the width of the label. The label text can be aligned to any side or corner of the control.
// Label
label1.Text = "This ...Read now
Unlock full access