c
Calendar control in ASP.NET, 331
CalendarFont property of DateTimePicker control, 107
CalendarForeColor property of DateTimePicker control, 107
CalendarMonthBackground property of DateTimePicker control, 107
CalendarTitleBackColor property of DateTimePicker control, 107
CalendarTitleForeColor property of DateTimePicker control, 107
CalendarTrailingForeColor property of DateTimePicker control, 107
CancelButton for form, 146
CanExtend() method of IExtenderProvider interface, 299
CanUndo property of TextBox control, 95
Capture property of Control object, 427
CardLayout manager, 460
cascading windows in MDI applications, 405-406
Category control property attribute, 312
CenterParent StartPosition value, 148
CenterScreen StartPosition value, 148
Changed event, 75
CharacterCasing property of TextBox control, 96
charting ActiveX control, 89
check boxes, drawing, 498
CheckBox controls, 96-97
CheckBoxes propertyof ListView control, 212
of TreeView control, 228
Checked propertyof DateTimePicker control, 108
of MenuItem class, 115
of TreeNode collection, 229
CheckedIndices property of ListView control, 212
CheckedItems property of ListView control, 212
97
CheckOnClick property for list controls, 98
CheckState property of CheckBox control, 96
child form class in MDI application, 421-422
.chm file, 535
Class Library project, 261-263
classes, 24-28
controls as, 29-30
.NET for user interface, 29-39
roles of, 24-25
and types, 25-28
Clear() methodof Graphics object, 481
of Nodes collection, 225
of TextBox control, 96
Click eventfor BitmapViewer, 284-286
of Control object, 76
of MenuItem class, 117
event handler for, 119-120
of NotifyIcon, 257
clipping region, 482
Clippy in Microsoft Office, 553
CloneMenu() method, 121
of ContextMenu class, 114
of Menu class, 113
of MenuItem class, 116
cloning menus, 121
Closed event of Form class, 147
CloseFigure() method of GraphicsPath object, 496
Closing event of Form class, 147
.cnt contents page, 533
coding user interface, 1
Collapse() method of TreeNode collection, 230
collapsible split windows, 184-185
collapsing TreeView levels, 230-231
collections, 45
tracking extended controls in, 300
colorcode for retrieving selection, 167
of controls, 66-68
filling list control with known, 68-69
of owner-drawn menus, 124
color picker for GradientLabel, 505
ColorDepth property of ImageList control, 202
ColorDialog, 170
ColorTranslator class, 67
column mapping for DataGrid control, 382-383
ColumnChanging event of DataTable object, 372
ColumnClick event of ListView control, 213
Columns property of ListView control, 211
ComboBox control, 97
special properties, 99-100
Comctl32.dll file, 163
command-line interface, 3-5
Commit() method of DataGridColumnStyle class, 383
Common Language Runtime, and Windows Forms package, 57
complexity, handling, 15-17
Component class, 442
component tray, invisible control icon in, 84
ComponentAdded method, 335
ComponentAdding method, 335
ComponentChanged method, 335
ComponentChanging method, 335
ComponentRemoved method, 335
ComponentRemoving method, 335
CompositingMode property of Graphics object, 481
CompositingQuality property of Graphics object, 481
computer settings, TreeView control to configure, 219-223
configuration utility, 13
consistency, in .NET platform, 11
constants, enumerations for, 27-28
ContainerControl class, 154
anchoring, 176-177
Contains() methodof Control object, 72
for hit testing, 494
of Nodes collection, 225
ContainsFocus property of Control object, 74
content, dynamic, 449-457
context integers for help, 541
context menus, 111
attaching, 119
with default help, 544
for drawing program, 448
context-sensitive help, 538
HelpProvider control for, 298
114
SourceControl property of, 447
ContextMenu propertyof Control object, 72
of NotifyIcon, 257
control arrays, technique to replace, 64
control-based help, 542-543
Control class, 60-64
access keys, 71
basic members, 62-63
colors, 66-68
focus and tab sequence, 72-74
FontHeight property, 70
fonts and text, 69-70
Handle property, 81
hierarchy, 61
low-level members, 81-82
position and size, 64-66
properties for relationships, 71-72
response to mouse and keyboard, 75-79
Text property, 69-70
control designer, 328
control layout engines, 459-463
as extender providers, 463
SingleLineFlow layout manager, 460-463
Control object, Capture property of, 427
control references, 45
ControlAdded event of Control object, 62
ControlBox property of Form class, 144
ControlDesigner class, GetService() method, 334
ControlDesignerparent class, 334
controller class, 409
ControlPaint class, 498-500
methods, 518
ControlRemoved event of Control object, 62
controls. See also menus
adding to form, 307
anchoring, 173-176
applying key to, 266-267
attributes, 310-314
classic gallery, 90-101
Button controls, 94
CheckBox controls, 96-97
domain controls, 102-104
label controls, 90-91
LinkLabel control, 91-94
List controls, 97-101
organizational controls, 104
PictureBox controls, 97
RadioButton controls, 96-97
TextBox controls, 94-96
containing controls, 30-32
creating at runtime, 436-448
controls in drawing program, 443-448
system tray application, 438-442
data-aware, 391-398
data binding, 349-350
for multiple, 363-365
DataBindings collection, 357-360
Date controls, 105-110
DateTimePicker control, 106-108
MonthCalendar control, 108-110
derived from other controls, 33-34
Dock property, 178
graphics and painting, 79-81
Help context ID for, 306
hiding or disabling based on permissions, 457
ImageList collection, 201-204
ImageList property of, 204
interaction with, 39-44
ListView control, 206-217
for MDI parents, 401
Name property of, 37
Nodes collection, 223-226
selecting nodes, 226-228
NotifyIcon, 257
removing from window, 32
smart, 42-43
StatusBar control, 249-254
synchronization to menu, 252-254
TabControl, 254-256
Tag property of, 391-392
ToolBar control, 242
synchronization, 246-249
tracking drawing area, 514
TreeView control, 217-241
advanced tricks, 228-235
custom, 240-241
data-aware, 239-240
design-time support, 241
navigation, 219-223
ProjectTree class, 235-237
typesActiveX controls, 86-90
imported ActiveX controls, 89-90
invisible controls, 83-85
provider controls, 85-86
71
and ProgressBar control, 275
Controls event of Control object, 62
Controls property, 30
convention in user interface, vs. creativity, 10
coordinate systems in GDI+, 485-487
Copy() method of TextBox control, 96
copying menus, 121
CopyTo() method of Nodes collection, 225
CreateGraphics() method of Control object, 80
creativity, vs. convention in user interface, 10
.cur file format, 79
CurrencyManager object, 373-374
Cursor property of Control object, 79
curves, drawing, 482
custom classes, as data source, 351
custom controlsbenefits, 259
Class Library project, 261-263
custom designers, 326-335
filtering properties and events, 327-329
notifications, 334-335
verbs, 329-334
custom extender providers, 298-307
HelpIconProvider, 303-307
MenuTextProvider, 298-302
data types and UITypeEditors, 335-341
design guidelines, 275-276
design-time support, 310-321
attributes, 310-314
debugging, 322
resource files, 318-321
serialization, 314-316
toolbox bitmap, 316-317
and encapsulation, 275
GAC (Global Assembly Cache), 265-268
inheritance to create, 33
inherited controls, 289-297
DirectoryTree control, 291-293
masked TextBox control, 294-297
licensing, 341-346
projects, 261-268
referencing, 263-265
testing, 321-326
with PropertyGrid control, 325-326
types, 260
user controls, 269-276
bitmap thumbnail viewer, 276-289
creating, 269-270
inheritance, 269-270
progress indicators, 271-276
custom extender providers, 298-307
HelpIconProvider, 303-307
MenuTextProvider, 298-302
CustomFormat property ofDateTimePicker control, 108
Customize Toolbar dialog box, .NETFramework Components, 263
Cut() method of TextBox control, 96