Team LiB
Previous Section Next Section

Index

M

marquis selection
about, 230
illustrated, 236
within PictureBox, 230-238
Mask property, 475-479
Masked Edit control, 462-472
about, 462
customizing, 472-473
getting from Visual Studio 6.0, 462-463
illustrated, 463
masking characters available, 464-465
testing customized, 491-494
validation errors in .NET, 465-472
Masked Edit control, 491-494. See also CustomMask project; MaskedEdit project
checking Format property, 492-493
Masked Edit control in Toolbox, 463, 491-492
repairing code to trigger ValidateErrorEventHandler, 493-494
test form for, 492
MaskedEdit project, 467-472
adding controls and properties for, 467
events in, 468-470
form, 467
.NET rendition of control test for, 470-471
out of order events in, 471-472
MDI (multiple-document interface) applications, 140-152. See also SDI
C# code for, 143-147
context menu in, 152-153
converting SDI to, 141
defined, 140-141
Golf project as, 643, 644, 645
setting up MDIapp project, 141-142
VB code for MDI application, 148-151
MDIapp project
setting up, 141-142
VB code for, 148-151
memory
modifying Dispose method to clear, 342-343
reading and writing binary file to, 384-386
Menu control, 36
MenuItem, testing delegate call by, 134-135
menus. See also context menus
assigning hot keys on, 83-85
code for PowerUser menu delegate, 94
context menu in MDI applications, 152
displaying context, 248-249
help for .NET, 153
invoking pop-up menus with object, 249-256
MessageBox dialog box, 405-406
methods
QuickTreeTester project, 631-632
specific to multithreading, 612-613
static, 89
validation methods using regular expressions, 457-460
modality of error dialog box, 405-406
MonthCalendar control, 35
mouse-based data entry, 215-238. See also MouseTrap project
conditions required for drag-and-drop operations, 281-282
detecting changed cells and cells clicked by user, 368-371
events for, 216
intercepting keystrokes for form controls, 222-228
linking DataSource property of ListBox to internal array, 219-222
mouse event handlers for drag-and- drop operations, 277-281
MouseTrap project, 216-229
tabbing through controls, 27
MouseDown delegate, 235
MouseEvent Handlers screen, 229
MouseEventsArgs class, 216
MouseMove delegate, 235
MouseTrap project, 216-229
actions done by, 218
adding flags from ListBox in
PictureBox, 228-229
all flags displayed in PictureBox, 229
class local variables in, 232
code for rectangle converter class, 231
creating Paint delegate for, 232-233
linking DataSource property of ListBox to internal array, 219-221
marking and deleting flags in PictureBox, 236-238
marquis selection, 230, 236
setting local class structure holding flag and its name, 218-219
MouseUp delegate, 235
Movie Rental Program screen
running program for, 286-287
setting up, 265
MovieList class
C# code for, 269-272
functionality of, 268-269
VB code for, 272-274
MovieList objects, 286
MovieList project, 264-291
classes added to, 266-267
code for ListViewSorter class, 287-290
constructor initialization code, 283-286
creating Movie object, 267-268
functionality of MovieList class, 268-269
items demonstrated in, 264-265
main movie form code, 276-291
opening text file and declaring delimiter constant, 274-275
overriding ToString() method, 275-276
setting up Movie Rental Program screen, 265
sort order arrays in, 290-291
MSComm control, 375
MSComm project, 375-378
MsgBox command (VB), 406
multiform SDI. See SDISample project
MultiLine TextBox controls
AcceptsReturn property, 20, 21
Enter key in, 20
allowing external client use of TreeView control, 616-619
cautions about, 612
functions of QuickTree multithreading project, 613
methods specific to, 612-613
overview, 640
synchronizing conflicts with worker threads, 639-640
testing multithreaded control, 637-639
worker thread code for QuickTree project, 623-625

Team LiB
Previous Section Next Section