Team LiB
Previous Section Next Section

Index

C

C# code. See also Golf project
adding handlers for TextBox events, 483-484
adding ToolBar, 84-85
adding trace line to Form_Load delegate, 425
adding validation code from event handlers, 28-33
allowing external client use of TreeView control, 616-617
assigning access keys, 83-85
capturing letters and numbers with KeyPress event, 29-32
car mileage expense report example, 178-183, 188-192
catching general exceptions, 432-433
changing culture, 168-169
Classify static class, 532-533
code region for Required property, 504-505
comparing coding for multiform SDI in VB and, 139-140
complete code for Towns class, 357-361
console program, 104-107, 108-109
constructor setup code for MenuItem objects, 245-246
ContainedControls project, 244
context menu in MDI applications, 152
controlling and deleting user input, 480-481
creating schema-fed validating reader, 563-568
currency and number displays, 171-172
CustomMask project, 473-477, 486, 487-491
DataBound project, 40-44
date and time displays, 170-171
DB_data project, 330
DB_Grid project, 334, 335, 336, 337-339, 342, 350
detecting changed cells and cells clicked by user, 368-369
Dispose method, 342-343
enabling updating of disconnected data, 346-347
ErrDialog project, 402-404
ErrProvider project, 398-399, 400
events of Masked Edit control in, 468-469
examples using regular expressions, 449-450
Form_Load and button click event handlers for, 415
GridRestrict project, 354-355, 366-367, 371-372
handling event delegates, 89-91
InputValidator code, 30-31, 33
intercepting keystrokes for form controls, 222-225
IScoreCardInfo object, 661-662
Keys project, 206, 209-212
linking DataSource property of ListBox to internal array, 219-220, 221-222
ListViewSwap project, 261-262
Logging project, 408-411, 414
LvItems collection class, 259-260
MDIapp, 143-147
MouseTrap project, 218-219, 232-233
MovieList project, 269-272, 283-284, 286, 287-290
MSComm project, 377
null checking, 622-623
overriding CanExtend property, 497-498
PowerUser project, 73, 74-78, 86-89, 98-100, 102
QuickTree project, 614, 615, 619-620, 623-624, 626
QuickTreeFill project, 594-596, 597-598, 599, 600-602, 605-607, 610, 611
QuickTreeTester project, 630, 631-632, 633-634, 635-636, 637
reading and writing binary data, 382-383, 385, 386
ReadXMLFile method, 546-549
rectangle converter class, 231
Regx class, 516-520
retrieving resources, 165-166
screen size and resolution issues, 110-111
SDISample project, 124-128, 133-134
SelectText program, 53-55
sending trace output to console window, 426-427
setting up ReadXML button with click event handler, 545-546
setting up trace listeners with constructor, 428, 429
simple error throwing and catching, 431-432
Spy example, 196-197, 198
static classes, 365-366
synchronizing conflicts with worker threads, 639, 640
tabbing through controls, 27
terminal setup program, 10-15
Tracing project, 420-421, 423, 424
Tree Test project, 578-579, 585-587, 588-589
Union project, 380-381, 388, 389-393
using VB commands in, 200, 371
ValidateXML project, 555-556, 559, 560-561, 568, 569
validating with regular expressions, 457-458, 460-461
Vlad project, 496, 497, 498-499, 500-501, 502-503, 509-511
WriteXML project, 535-538
writing ConfigDate string to file, 570-571
calendars, 167, 172
CanExtend property, 497-498
Caption property (VB 6.0), 3
Capture class, 446
CaptureCollection class, 446
car mileage expense report example, 173-192
C# code for, 178-183, 188-192
creating text-based resource files for, 176-177
data validation in, 190-191
English version of form, 187
French version of form, 187
loose resources, 188
project directory structure for, 175-176
setting up form controls for, 173-175
VB code for, 183-187
Catch block, 433-444
catching errors before they happen, 434-437
character matching commands, 448
CheckBox control, 34
CheckedListBox control, 397, 398
child forms, 119-137
converting MDI applications to SDI applications, 151
instantiating for Golf project parent screen, 669, 670-671
state of in SDISample project, 123
class local variables
CustomMask project, 474-475
DB_Grid project, 335
MouseTrap project, 232
Photo project, 302
QuickTreeFill project, 597-598
QuickTreeTester project, 631
SDISample project, 124
Tracing project, 423
Union project, 380-382
classes
of Golf project, 644
immutable, 446
MovieList, 266-269
static (shared), 365-366
in System.Globalization namespace, 167
used with mouse events, 216
Classify static class, 532-534
click events
Course Setup tab and cmbHoles, 673-675
Logging project, 414
QuickTreeFill project, 610-611
ReadXML button as, 545-546
cmdSwap button, 263-264
collection classes
IHoleDetails, 650-655
LvItems, 259-260
.NET, 108
collections
about, 446
Golf project, 662-664
strongly typed, 643
column sort method, 302-305
COM Interop capability, 375
ComboBox controls
improving RadioButton screen with, 6-7
maximum items for entry in, 7
overriding ToString() method in, 275-276
setting up validation for, 7-8
Command object (ADO.NET), 328, 329
Commit delegate of DB_Grid project, 350
common language runtime (CLR), garbage collector in, 443
ConfigDevice.xsd, 556-558
Connection object (ADO.NET), 328-329
connections, killing, 342, 345
console applications, 104-109
console window
debugging with, 429-430
killing, 428, 429
sample listings for Tracing, 420-423
sending trace output to, 426-427
simulating, 419
constructor code
ContainedControls project, 245-246
Keys project, 206
linking DataSource property of ListBox to internal array, 219-222
ListViewSwap project, 262-263
MovieList project, 283-286
MSComm, 377
overloading, 103
PowerUser main form, 73-83
QuickTree, 626
QuickTreeFill, 610-611
setting up trace listeners with, 428-429
static, 366
ValidateXML project, 555-556
WriteXML project, 545-546
ContainedControls project
code for, 242, 243
constructor setup code for MenuItem objects, 245-247
creating main form with controls, 242
displaying menu, 248-249
internal variables added to, 243-244
context menus
adding internal variables, 243-244
constructor setup code for MenuItem objects, 245-247
creating ContainedControls main form, 242
displaying, 248-249
in MDI applications, 152
setting up code for, 242-247
ContextMenu control, 241
Control base class, 3-4
controls, 1-57. See also extending control properties, and specific controls
adding elements to XML, 557
adding to Tree Test project form, 577-578
adding validation code from event handlers, 28-33
allowing external client use of, 616-619
anchoring, 113-114, 228
Button control, 33-34
CheckBox control, 34
creating validation, 494-495
cutting and pasting into input fields, 50-51
data-bound controls, 38-49
DateTimePicker and MonthCalendar controls, 35
defining in code, 109
derivation from System.Windows.Forms.Control, 3-4
disappearing, 111-114
error checking, 49
.NET IDE, 240-241
RadioButton control, 34-35
resizing in .NET, 113-114, 320
selecting text in TextBox, 51-57
setting up TextBox controls, 20-22
simple data entry in TextBox, 4-7
studying help for, 49
tabbing through, 27
testing multithreaded, 637-639
ToolBar and Menu controls, 36
TreeView and ListView controls, 36-37
writing validation for, 1-3
course editor form of Golf project, 646
Course scores tab (Golf project), 678-685
adding new row to, 647
code for setup, 679-685
illustrated, 678
Course Setup tab (Golf project)
child forms and, 670
illustrated, 646, 671
sample listings for, 671-675
culture
changing, 168-169
identifying for localization, 155
currency displays, 171-172
Customize Toolbar (Visual Studio 6.0), 376, 463, 491, 513, 628
CustomMask project, 472-494
class definition before/after change, 473-474
class local variables for, 474-475
code for, 473
controlling and deleting user input, 480-482
delegates for class constructor in, 486
features for, 472
Format and Mask properties for, 475-479
limitations handling literal characters, 483
testing, 491-494
TextBox event handlers, 483-485
ValidationErrorEvent added to, 487-491
cutting and pasting into input fields, 50-51

Team LiB
Previous Section Next Section