D
DashPattern property of pen, 489
DashStyle property of pen, 490
data-aware controls, 391-398
data bindingADO.NET, 360-373
advanced conversions, 370-372
formatting data before, 367-369
multiple control binding, 363-365
row validation and changes, 372-373
updating, 365-367
in ASP.NET, 20
basics, 350-359
binding context creation, 379-380
BindingContext object and CurrencyManager object, 373-374
master-detail forms, 377-378
navigation, 374-375
reacting to record navigation, 376-377
DataGrid control, 380-387
column mapping, 382-383
custom column styles, 383-387
relations, 381
encapsulation, 387-390
interfaces for, 365
lists to complex objects, 353-356
and ListView control, 397-398
problems, 350
simple list binding, 352-353
single-value binding, 357-360
validation of bound data, 388-390
14
data-driven programming, 457-459
data-driven user interfaces, 46
data layer in three-tier design, 49
problems, 49
data transfer plan, defining, 45
data types, Properties window support for, 335
databasehelp based on, 545-546
integer comparison with enumeration, 370
separation from user interface, 387-388
storing records linked to graphics, 371
table to map user levels for permissions, 453
TreeView object for browser, 51-52
DataBindings collection, of controls, 357-360
DataGrid control, 380-387
anchoring, 175
column mapping, 382-383
custom column styles, 383-387
DataSource property of, 381
vs. ListView object, 48
relations, 381
DataGridBoolColumn class, 383
DataGridColumnStyle class, overriding methods for, 383
DataGridTableStyle collection, 382
DataGridTextBoxColumn class, 383
DataRow objects, TreeView control recognition of, 239-240
DataRowView class, 366
DataSet object, 52-53
disconnection, 373
DataSource propertyof DataGrid control, 381
of list controls, 352
DataTable objectbinding to column in, 360-361
ColumnChanging event of, 372
specifying for DataView, 363
DataView class, 366
DataViewManager class, 366
Date controls, 105-110
DateTimePicker control, 106-108
MonthCalendar control, 108-110
Date property of DateTime control, 107
DateChanged event, 109
DateSelected event, 109
DateTimePicker control, 106-108
properties, 107-108
Deactivated event of Form class, 146
debuggingdesign-time support, 322
painting and, 480
DecimalPlaces property of NumericUpDown control, 104
DefaultEvent Control class attribute, 314
DefaultItem property of MenuItem class, 115
DefaultProperty Control class attribute, 314
DefaultValue control property attribute, 312
DefaultView property of DataTable object, 361
DefaultViewManager for data binding, 363
delegates, 27
deleting TreeView node, 224
Description control property attribute, 312
design mode, testing for, 323-325
design-time support for custom controls, 310-321
attributes, 310-314
debugging, 322
for gradient label, 505-508
resource files, 318-321
serialization, 314-316
toolbox bitmap, 316-317
DesignerSerializationAttribute, 504
DesignerSerializationVisibility attribute, 507
DesignerVerbCollection, 329
DesignMode property of Control object, 62
DesignOnly control property attribute, 312
Details for ListView View enumeration, 210
information display, 209
DeviceName property of Screen class, 150
DHTML, 535
dialog windows, 155-158
content to explain options, 551
.NET platform support, 157
prebuilt, 165-170
94
values, 158
Directory property for bitmap thumbnail viewer, 280
DirectoryInfo object, 341
DirectoryTree control, 291-293
testing, 293-294
using attributes with, 314
DirectoryTreeControl.DirectoryTree.LIC file, 341-342
disabled controls, 409
and tab order, 74
disabled events, 18
disabled image, drawing, 499
disabled menu items in owner-drawn menu, 125-130
DisabledLinkColor property of LinkLabel control, 93
disabling background painting, 477
DisplayMember property of list controls, 354
Dispose() methodof Control object, 63
of Graphics object, 481
Divider property of ToolBar control, 243
Doc-to-Help, 537
dock padding, 178
dockable windows, 429-434
multiple, 434
with owner-drawn controls, 429
with timers, 430-434
docking, 177-179
mouse move code for automatic, 427
with panels, 181-183
toolbars, 425
DockPadding property for split window, 181
document editor, 14
document MDI applications, 400
documentsin MDI interface, 410
status bar information about, 249
DoDragDrop() method, 235
domain controls, 102-104
DomainUpDown control, 102
DOS command-line interface, 3
double buffering, 477-480
for MarqueeLabel control, 511
DoubleClick eventof Control object, 76
of NotifyIcon, 257
drag and drop, 130-134
authentic, 132-134
fake, 130-132
squares in drawing, 444-447
for toolbars, 425
for TreeView control, 231-235
DragDrop event handler for TreeView control, 234
DragOver event, 233
Draw() method of ImageList control, 202
DrawArc() method of Graphics object, 482
DrawBezier() method of Graphics object, 482
DrawBeziers() method of Graphics object, 482
DrawBorder() method of ControlPaint object, 498
DrawBorder3D() method of ControlPaint object, 518
DrawButton() method of ControlPaint object, 498
DrawCaptionButton() method of ControlPaint object, 498
DrawCheckBox() method of ControlPaint object, 498
DrawClosedCurve() method of Graphics object, 482
DrawComboButton() method of ControlPaint object, 498
DrawCurve() method of Graphics object, 482
DrawDockRectangle property of MDIMain object, 431
DrawEllipse() method of Graphics object, 482
DrawFocusRect() method of ControlPaint object, 518
DrawFocusRectangle() method of ControlPaint object, 498
DrawGrid() method of ControlPaint object, 498
DrawIcon() method of Graphics object, 482
DrawIconUnstretched() method of Graphics object, 482
DrawImage() method of Graphics object, 482
518
DrawImageUnscaled() method of Graphics object, 482
drawing program, controls, 443-448
DrawItem event of MenuItem class, 122
DrawLine() method of Graphics object, 482
DrawLines() method of Graphics object, 482
DrawLockedFrame() method of ControlPaint object, 499
DrawMenuGlyph() method of ControlPaint object, 499
DrawMixedCheckBox() method of ControlPaint object, 499
DrawPath() method of Graphics object, 521
DrawPie() method of Graphics object, 483
DrawPolygon() method of Graphics object, 483
DrawRadioButtion() method of ControlPaint object, 499
DrawRectangle() method of Graphics object, 483
DrawRectangles() method of Graphics object, 483
DrawScrollButton() method of ControlPaint object, 499
DrawSelectionFrame() method of ControlPaint object, 499
DrawSizeGrip() method of ControlPaint object, 499
DrawString() method of Graphics object, 483
Drive property of DirectoryTree, 333
serialization, 315-316
drop-down lists, 18
DropDown combobox control, 100
DropDownAlign property of DateTimePicker control, 108
DropDownArrows property of ToolBar control, 243
DropDownList combobox control, 100
DropDownMember property of ToolBarButton object, 245
DropDownStyle property for ComboBox control, 100
DropDownWidth property for ComboBox control, 100
DroppedDown property for ComboBox control, 100
dynamic resizing of windows, 172
dynamic user interfacecase for, 435-436
control creation at runtime, 436-448
controls in drawing program, 443-448
system tray application, 438-442
control layout engines, 459-463
as extender providers, 463
SingleLineFlow layout manager, 460-463
data-driven programming, 457-459
dynamic content, 449-457
localization, 450-452
menu example, 453-457