Dash
DashCap, 584
DashOffset, 584
DashPattern, 584
DashStyle, 547, 584–85
Pen, 584–85
System.Drawing.Drawing2D, 546–47
Data
adding to project, 34
BindingNavigator, 904
BindingSource, 904
data bound control, 34
DataConnector, 274
DataFormats, 401–2
Data menu commands, 34
DataNavigator, 274
DataObject, 407–8
DataSource, 324
Data Source Configuration Wizard, 310–16, 326
Data Sources window, 318–19, 325–26
display, controls for, 270
entry, controls for, 269–70
for Crystal Reports Gallery, 681, 687
for database, adding, 310–11, 318–19
loading/viewing, 34
validation of, 99–104
window, display of, 34
Data adapters
Data Adapter Configuration Wizard, 332–36
database building, 322–23, 331–36
defined, 331
Query Builder, 331–35
Data attribute, XAML drawing commands, 721–23
Database
BindingNavigator, 321
BindingSource, 321, 363–65
ChangeDatabase, 327
columns. See Column(s);
DataColumn
command objects, 322, 336–37
connections. See Database connections
constraints, 351–53
controls/components, automatic building, 320–22
CurrencyManager, 358–61
data, adding. See Data
data, movement within, 323–24
data adapters, 322–23, 331–36
database objects, adding, 315–16
Database Tools, 46
data binding, complex, 362–66
data binding, simple, 357–58
data containers, 322
DataRelation, 349–51
DataSet, 318, 320–24, 337–41
DataView, 353–56
grid view, 318
ListBox, 365
object, 324
Object Linking and Embedding Database (OLE DB), 322
Open Database Connectivity (ODBC), 312, 322, 324
records-oriented view, 319
rows. See DataRow;
Row(s)
schema, 316–18
64-bit driver problem/solution, 309–10
SQL Server database, 312, 322, 324
tables. See DataTable;
Table(s)
transaction objects, 327–30
Database connections
Add Connection, SQL Server, 313
connection objects, 324–27
Connection String, 324–25
ConnectionTimeout, 324
Connect to Database, 37
Connect to Server, 37
creating connection, 311–15, 322–27
New Connection, 326
Open and Close, 327
Data binding. See Binding
DataColumn, 347–49
ColumnMapping, 347
ColumnName, 347
Namespace, 348
ParentColumns, 350
properties, 347–48
ReadOnly, 348
DataGridView, 263, 270, 320, 322, 911
DataRelation, 349–51
properties, 349–50
DataRow, 320, 344–46
DataRowView, 356–57
GetChildRows, 346
GetParentRow, 346
ImportRow, 344
LoadDataRow, 344
methods, 346
NewRow, 344
properties, 345
RowChanged, 344
RowChanging, 344
RowDeleted, 344
RowDeleting, 344
RowError, 345
RowState Unchanged, 345
SetParentRow, 346
DataSet, 54, 263, 911–12
building, 337–39
database building, 318, 320–24, 337–41
DataRelation, 350
DataSetName, 339
DataTable, 342
loading of, 337
methods, 341
properties, 339–40
Data sources. See Data
DataTable, 320, 342–44
DataView customizable view, 353–56
events, 344
methods, 343–44
properties, 342–43
Data type(s), 131–39, 875
basic, listing of, 132–33, 875–76
DataType, 347
data type characters, 133–36
data type conversion, 136–39
defined, 131
enumerated, 163–66
find and replace 12
incompatible data types message, 20–21
parsing methods, 139
Data type characters, 133–36
listing of, 133–34, 876
literal type characters, 134–36, 877
specifying, 134
Data type conversions, 136–39
listing of, 137–38, 877–78
narrowing conversions, 136–39
widening conversion, 139
DataView, 353–56, 357
methods, 356
properties, 355–56
Dates, 181–83
Compare method, 182
custom formats, 1046–48
Date data type, 133, 134, 137, 181
DateTimePicker, 263, 269, 912–13
defining equations for, 181
delimiter for (#), 112–21
FileDateTime, 784
format specifiers, 1045–46
methods, 182
MonthCalendar, 264, 269, 944–47
operators, 181, 883–84
D character, 135
Deactivate, 1018
DebuggerHidden, 193
DebuggerStepThrough, 193
Debugging, 24–34, 110, 240–41
Attach to Process, 31, 36
Breakpoints window, 31–32
code, execution of, 25
Command window, 33–34
custom controls, testing, 370–71
Debug_Level, 120–21
Debug.Assert, 117–18, 237
Debug constant, 115–18
Debug.Fail, 118
Debug menu commands, 24–34
Immediate window, 33–34
indent options, 118
Options command settings, 46, 110
Run Code Analysis, 22–23
scope of, 260
Script Explorer, 31
Test Project commands, 47
Windows submenu, 27–31
See also Error handling
Decimals
data type, 132, 135, 138
data type character (@), 133
ReadDecimal, 774
Decision statements, 207–18
Choose, 217–18, 889
functions of, 207
If Then, multiline, 209–10, 886
If Then, single line, 207–8, 887–88
IIf, 215–17, 889
Select Case, 210–15, 888–89
single data type, 887–89
Decrease, 35
DefaultEvent, 191
DefaultProperty, 191, 374
Default settings, reset methods, 288
Default Style, 44
DefaultValue, 191, 347, 374–75
DefaultView, 342
DefaultViewManager, 339
Deferred validation, 102–4
Delegates, 167–69
Delegate statement, 167
events, 471
functions of, 167–68
Delete
AllowDelete, 355
DataRow, 344, 346
DataView, 356
Delete All Breakpoints, 27
Delete Breakpoint, 57
DeleteCommand, 331, 336
DeleteDirectory, 800
DeleteFile, 800
DeleteRule, 351
DeleteSetting, 745–46
DeleteSubKey, 747
Delete Tab, 54
DeleteValue, 747
Delete Watch, 26
Directory, 788, 792
files, 784, 794
Kill, 784
RowDeleted, 344
Deleted, FileSystemWatcher, 796
Dequeue, 524
DeRim, 225
Derived controls
building, 376–80
parent features, hiding, 379–80
parent features, shadowing, 378–79
Deriving classes, inheritance, 428–32
Descent, 631
Description, 191–92
Designer, 14
DesignMode, 375
DesignTimeVisible, 374
Desktop
coordinates, 1017
DesktopBounds, 1011
DesktopLocation, 1011
SetDesktopBounds, 1017
SetDesktopLocation, 1017
Device context, FromHdc, 561
Devices/emulators
Connect to Device, 37
Device Controls, 54
Device Emulation Manager, 39
Device Tools, 46
Dialog boxes
About, 282–83
ColorDialog, 273, 906–9
DialogResult, 305–7, 1011
FolderBrowserDialog, 263, 273, 918–20
FontDialog, 263, 273, 920–23
forms as, 305–7
listing of, 273
OpenFileDialog, 264, 273, 950–53
PageSetupDialog, 273, 953–55
PrintDialog, 264, 273, 660–61, 958–62
PrintPreviewDialog, 265, 273, 274, 659, 964–65
SaveFileDialog, 265, 273, 973–74
ShowDialog, 1017
Window forms controls, 273
wizards, 307–8
Dialog Editor, 54
Dictionaries, 512–20
Hashtable, 515–16
HybridDictionary, 516
ListDictionary, 513–15
properties, 512–13
StringDictionary, 519
strongly typed, 516–19
strongly typed dictionaries, 517
System.Collections.Generic namespace, 527
Dim
and constants, 166
function of, 145
and variable declaration, 145
Dir, 784
Direct3D, 850–57
building application, 851–57
development kit, installing, 850
DirectionRightToLeft, 619–22
DirectionVertical, 619–22
Directory
AltDirectorySeparatorChar, 797
Attributes, 792
ChDir, 784
Code snippets, saving in, 67
CopyDirectory, 800
Create, 792
CreateDirectory, 788, 800
CreateSubdirectory, 792
creation time/date, 788–89, 792
current, 742
Delete, 788, 792
DeleteDirectory, 800
Dir, 784
Directory class properties, 1089–90
DirectoryEntry, 263, 913
DirectoryExists, 800
DirectoryInfo, 792–93
DirectoryInfo properties, 792–93
DirectoryName, 794
DirectorySearcher, 263, 914
DirectorySeparatorChar, 797
Exists, 788, 792
Extension, 792
FileInfo, 794
File system methods, 788–89
FullName, 792
GetCurrentDirectory, 788
GetDirectories, 788, 792, 800
GetDirectoryInfo, 800
GetFiles, 792
GetFileSystemInfos, 792
last access time/date, 788–89, 792–93
MkDir, 784
MoveDirectory, 801
Name, 793
Parent, 793
Refresh, 793
Rename, 784
RenameDirectory, 801
RmDir, 784
SpecialDirectories, 799
SystemDirectory, 743
Temp, 802
ToString, 793
Disable, event handler, 98
Display area, 93
DisplayMruList, 300, 300–301
DisplayQueue, 525–26
DisplayRectangle, 94, 1011
Dispose
Graphics object, 561
heaps, 463–64
Image, 638
Divide-by-zero exception, 26
Division operator (/), 177, 879
DLL
building file, satellite resources, 759
Modules window information, 30
Docking
control stacking order, 92
dockable windows, 49
Dock property, 91–93
secondary windows, 52–53
Documentation, placement in project, 4
Document Outline, 14
DoDragDrop, 395, 397, 400, 404–5, 1015
DoEvents, 765
Do Loop
forms of, 228–29
looping functions of, 228–30, 890–91
syntax for, 228
DomainUpDown, 263, 269, 914–15
Dots, DashStyle, 547
Dots per inch (DPI)
Graphics object, 561
SetResolution, 640
DoubleClick, 1018
Double data type, 132, 135, 137
data type character (#), 134
DoubleItByRef, 161
DoubleItByVal, 160
Do While Loop, 230
DpiX, 561
DpiY, 561
Drag-and-drop, 394–410
AllowDrop, 1009
data format name, changing, 407
DoDragDrop, 395, 397, 400, 404–5
DragDrop, 394, 1018
DragDropEffects, 400
DragEnter, 394–95, 1018
dragging multiple data formats, 408–10
dragging objects, 404–7
DragLeave, 394, 1018
DragOver, 394–95, 400, 405, 1018
dropped files, program processing of, 403–4
drops allowed by event handler, 401–2
events, 394–95
example of, 395–97
ListBoxes, copying between, 397–401
ListBoxes, moving between, 397–401
QueryContinueDrag, 1021
application, 402–3
Draw
DrawArc, 554
DrawBar, 670
DrawBezier, 554, 555–56
DrawBeziers, 554, 556–57
DrawClosedCurve, 554, 557–59
DrawCurve, 554
DrawEllipse, 554
DrawIcon, 554
DrawIconUnstretched, 554
DrawImage, 554
DrawImageUnscaled, 554
DrawLine, 554
DrawLines, 554
DrawPath, 554, 559–60
DrawPie, 554
DrawPolygon, 554
DrawRectangle, 555
DrawRectangles, 555
DrawString, 555, 616–17
Drawing
Brush, 542, 592–606, 1036
drawing/printing combined, 673–76
garbage collection, 611–13
GraphicsPath, 606–10, 1037
Image, 638–39, 1038–39
namespaces. See Drawing namespaces
Pen, 542, 583–91, 1035–36
steps in, 542–43
XAML, 717–23
See also Graphic(s)
Drawing namespaces, 544–53, 1029–32
System.Drawing, 544–45, 1029–30
System.Drawing.Drawing2D, 545–48, 1030–31
System.Drawing.Imaging, 549–52, 1031
System.Drawing.Printing, 553, 1032
Drive
ChDrive, 784
DriveFormat, 791
DriveInfo properties, 791, 1092–93
DriveType, 791
free space, 791
GetDriveInfo, 800
GetLogicalDrives, 744, 788
IsReady, 791
My.Computer.FileSystem, 799
Name, 791
RootDirectory, 791
VolumeLabel, 791
Drop down lists
ComboBox, 909–11
ContainsFileDropList, 412
DropDownList, 268
DropDownStyle, 268
GetFileDropList, 412
options, 412
SetFileDropList, 412
ToolStrip, 988
WithEvents, drop-down entries, 145–47
Dropping. See Drag-and-drop
Duplex printing, 960
DynData, 746