Team LiB
Previous Section Next Section

Index

D

data
abstracting from main program, 357-365
abstracting from source, 336
converting strongly typed data to string, 542
detecting changed cells and cells clicked by user, 368-371
enabling updating of disconnected, 345-351
kinds of XML, 571
manipulating with ListView control, 256
presenting in ListView control, 257-264
reading and writing binary, 382-386
retrieving with DataGrid control, 332-333
Union data structures, 387-393
wrapping file stream in binary reader, 384
writing in XML, 531-543
data adapter, 350, 351
data binding, 38-49
data editing form, 68-72
adding Basic Data controls, 69-70
adding controls to Position tab, 70-71
first tab of, 70
form controls for PowerUser project, 69
setting up PowerUser form, 68-72
data entry, 203-238, 327-393
abstracting shared data from program, 357-365
common validation items for text box input, 455-456
data streams, 379-387
DataGrid control and data retrieval, 332-333
DataGrid validation, 352-374
DB_data project, 329-332
disconnected recordsets, 334, 374
events for mouse-based, 216
form for Keys project, 205
function of database in, 327
KeyDown, KeyPress, and KeyUp events, 204-205
KeyDown delegate for Keys project, 206
KeyEventArgs properties, 205
main sources of errors, 395
marquis selection within PictureBox, 230-238
MouseTrap project, 216-229
null arguments in KeyPress events, 214-215
observing key events, 214
on-the-fly validation and keyboard, 204, 214-215
overview of, 203-204
RS–232 devices and, 375-378
setting up ADO.NET Connection object, 328-329
trapping key events in Keys project, 207-209
TreeView control for, 291-292
Union data structures, 387-393
updating DataGrid with SQL commands, 351-352
USB and barcode readers, 378-379
data entry controls. See controls
context menu in MDI applications, 152-153
externalizing resources, 159-173
internationalization and localization of, 153-159
keeping track of SDI child forms, 119-137
localized data-entry example, 173-192
multiform SDI example, 119-137
multiple-document interface, 140-152
object-oriented GUI and, 239-240
programming guidelines for accessibility, 192-193
properties for accessibility, 193-194
running multiform SDI, 137-140
single-document interface, 117-119
data sources
disconnected data as, 374
serial devices as, 375-378
types of, 374
USB devices and barcode readers, 378-379
data streams. See streams
data structures for Golf project, 649-660
code for IHoleDetails collection classes, 650-660
overview of, 649-650
data types for drag-and-drop operations, 282
DataAdapter object (ADO.NET), 328
database class for Golf project, 664-669
databases
converting connections to, 335-336
function in data entry, 327
performance of data retrieval in large, 341
TreeView control performance in VB 6.0, 573-577
types of objects in ADO.NET, 327-328
using disconnected recordsets, 334
data-bound controls, 38-49
DataBound project, 38-49
C# code listing for, 40-44
VB code listing for, 44-49
White wine tab for, 39
DataGrid control. See also GridRestrict project
about, 38
data retrieval with, 332-333
disconnected data as data source, 374
in Golf project, 644, 647, 696-697
validating cell entry in Golf project, 685-688
validation example in GridRestrict project, 352-353
DataReader object (ADO.NET), 328, 329
date and time displays, 170-171, 189
DateTimePicker control, 35, 189
DB_data project, 329-332
DB_Grid project
adding delegates to buttons, 336-337
adding initialization code to constructor, 337-341
adding namespaces, 334
adding tables, getting data, and ending connection, 342
Inventory table, 344, 345
modifying Dispose method, 342-343
Parts table, 344, 345
setting up, 333
updating Commit button delegate, 345-351
debugging
regular expressions, 527-528
with trace console window, 429-430
delegates
adding Photo project, 302-305
assigning dynamically to events, 123
for ErrProvider project, 398-399
FocusForm, 136-137
handling events, 32, 89-94, 135
KeyDown, 206
Movie Rental Program, 289-290
OpenWindow, 134
Paint, 232-233
PowerUser menu, 94
QuickTree, 626
SDISample project event, 124-133
testing call by MenuItem, 134-135
Tracing project event handling, 424-425
TreeView control, 305-309
Delete key, intercepting keystrokes, 222-228, 485
DES (Data Encryption Standard), 535
diagnostics
creating event logger for, 407-416
logging in .NET, 406-407
viewing event log, 416-417
dialog boxes
creating explicit error messages, 401-405
modality of error, 405-406
directory structure
car mileage expense report example, 175-176
Photo project, 293-294
disconnected recordsets
about, 334
as DataGrid data source, 374
enabling updating of, 345-351
Dispose method, 342-343
docking, 320-325
drag-and-drop operations. See also Photo project
adding method in Photo project, 302-305
conditions required for, 281-282
data types for, 282
mouse event handlers for, 277-281
preventing bad drop zones, 315-319
setting up MovieList drag-and-drop PictureBox, 286

Team LiB
Previous Section Next Section