Index
Symbols
#define keyword 581
#endregion directive 42
#format character, for numbers 350
#if directive, example 580
#region directive 42
& character
as mnemonic 18
on buttons 406
* character, in version string 44
+= operator, example 279
.NET Command Prompt 5
/addmodule switch 121
/define switch 581
/doc switch 40
/main switch 11, 580
/out switch 121
/r switch 21
/reference switch 5
/str option, resgen 430
/target switch 121
<c> tag 733
<code> tag 733
<example> tag 733
<exception> tag 733
<include> tag 733
<list> tag 733
<para> tag 733
<param> tag 734
<paramref> tag 734
<permission> tag 734
<remarks> tag 734
<returns> tag 734
<see> tag 734
<seealso> tag 734
<summary> tag 734
example 122
for statement completion 55
<typeparam> tag 734
<typeparamref> tag 734
<value> tag 734
-= operator, example 279
? conditional operator 209
@ character, identifiers 719
\- character, menu separator 82
| operator 29
|| operator, example 187
Numerics
0 format character, for numbers 350
A
AbbreviatedDayNames property 391
AbbreviatedMonthNames property 391
abm extension 161
Abort value 185
About box 680
abstract class, comparison with interface 132
abstract keyword 25, 720
accelerators 18
AcceptButton property 194, 242
for dialog box 195
AcceptsReturn property 225, 230
AcceptsTab property 224
access methods 123
accessibility levels 704
accessors 707
Action property, in TreeViewEventArgs class 523
Activate method 194
Activated event 467
in MDI forms 598
Activation property 543, 569
activation, in ListView 569
Active property 257
ActiveForm property 194
ActiveLinkColor property 110
in LinkLabel class 292
ActiveMdiChild property 578
example 588
ActiveX Control Importer tool 682
ActiveXInstance property 682
Add method
example (for Controls) 51
for menu items 361
in ArrayList class 135
in BindingSource class 648
in ControlCollection class 18
in IList interface 133
AddAnnuallyBoldedDate method 395
AddExtension property 25
AddingNew event, in BindingList class 640
AddMessageFilter method 12
AddNew method
in BindingList class 640
in BindingManagerBase class 658
in IBindingList interface 639
with IEditableObject interface 644
AddNewCore method 640
AddNewItem property 661
AddRange method 135
in ToolStripItemCollection class 84
AddStandardItems method 661
AES encryption 282
AfterExpand event 515
AfterLabelEdit event
in ListView class 543, 566
in TreeView class 515, 534
AfterSelect event, example 522
AlbumManager class 153
AlbumStorage class 168
encryption 288
alias, with using keyword 16
Alignment property
in DataGridViewCellStyle class 623
in TabControl class 359, 366, 369
in ToolStripItem class 86
AllowColumnReorder property 562
AllowDrop property 71, 674
example (PictureBox) 677
in ToolStripItem class 86
AllowedEffect property 677
AllowEdit property, in IBindingList interface 639
AllowItemReorder property 591
AllowMerge property 582
AllowNavigation property 683
AllowNew property, in IBindingList interface 639
AllowPromptAsInput property 234
AllowQuit property 12
AllowRemove property, in IBindingList interface 639
AllowUserToAddRows property 612
AllowUserToOrderColumns property 619
AllSystemSources value 344
AllUrl value 344
Alt property 271
Alt value 271
Always value 453
ambience 502
AmbientValue attribute 501
example 502
AMDesignator property 391
ampersand character 18
Anchor property 29, 71
example (ListBox) 311
example (TabControl) 368
relationship to Dock 30
values 29
with TableLayoutPanel class 203
See also Dock property
anchored menu. See menu bars
AnchorEditor class 504
AnchorStyles enumeration 29
values 29
animations, common files for 420
AnnuallyBoldedDates property 395
anonymous methods 361
example (Form) 634
AppDomain class 183
unhandled exceptions 184
Appearance property 369
example (TabControl) 368
in CheckBox class 251
in RadioButton class 247
in TabControl class 359, 366
Append value
in AutoCompleteMode enumeration 342
in MergeAction enumeration 583
AppendText method 224
Application class 12
invoking a Form 13
members 12
processing events 425
ProductVersion property 44
text rendering 40
visual styles 13
application data
global 12
user 12
application settings 686
ApplicationContext class 13
ApplicationException class 170
ApplicationExit event 12
applications 702
ApplicationScopedSettingAttribute class 689
ApplicationSettingsBase class 689
members 689
ApplySort method, in IBindingList
interface 639
AppWorkspace color 577
ArgumentException class 57, 104
example 530
arithmetic operators 719
ArrangeIcons value 603
Array class 134-135, 731
ArrayList class 134-135
members 135
arrays 731
example (ToolStripItem) 81
as keyword 103, 720
compared to cast 103
example 599
Ascending value 557
ASCII 234
ASCII property, in Encoding class 286
AsciiOnly property 234
AsNeeded value 453
aspect ratio 29
assemblies 5, 702
attributes 43
version conventions 44
Assembly class
example 428
GetManifest methods 427
AssemblyCompanyAttribute class 43
AssemblyCopyrightAttribute class 43
AssemblyDescriptionAttribute class 43
AssemblyFileVersion class 43
AssemblyInfo.cs file 43
AssemblyProductAttribute class 43
AssemblyTitleAttribute class 43
AssemblyVersionAttribute class 43
assignment operators 719
asterisk 47
in version string 44
asymmetric encryption 282
AsymmetricAlgorithm class 283
Attribute class 43
attributes 43, 728
example 262
in AssemblyInfo.cs 43
AutoCheck property
in CheckBox class 251
in RadioButton class 247
AutoClose property 95
AutoComplete property, in DataGridViewComboBoxColumn class 624
AutoCompleteCustomSource property 341
in ComboBox class 329
AutoCompleteMode enumeration 342
members 342
AutoCompleteMode property 341
in ComboBox class 329
in TextBox class 225
AutoCompleteSource enumeration 344
members 344
AutoCompleteSource property 341
example (ComboBox) 345
in ComboBox class 329
in TextBox class 225
AutoCompleteStringCollection class 343
AutoEllipse property
in ButtonBase class 242
in Label class 199
AutoGenerateColumns property 618
AutomaticDelay property 257
AutoPopDelay property 257
AutoResize method, in ColumnHeader class 552
AutoResizeColumn method, in DataGridView class 613
AutoScroll property 365
AutoScrollMargin property 365
example (TabPage) 364
AutoScrollMinSize property 365
AutoScrollOffset property 365, 491
AutoScrollPosition property 365
AutoSize property 226
example (Label) 226
in Label class 199
AutoSize value
example (PictureBox) 364
in PictureBoxSizeMode 101
AutoSizeChanged event 199
AutoSizeMode property
in Button class 243
in DataGridViewColumn class 620
in UserControl class 397
AutoToolTip property 86
AxHost class 679, 682
aximp.exe 682
B
BackColor property
example (Form) 276
in Control class 71
in DataGridViewCellStyle class 623
in ListViewSubItem class 554
in ToolStripItem class 86
BackColorChanged event, example 488
BackgroundImage property 489
BackgroundImageLayout property 489
BackgroundWorker class 410
members 410
base classes, for tree nodes 526
base keyword 144, 720
beep 231
Beep method 232
BeepOnError property 234
BeforeLabelEdit event
in ListView class 566
in TreeView class 534
BeforeSelect event 515
example 522
BeginEdit method
example (ListViewItem) 567
in DataGridView class 613
in IEditableObject interface 644
in ListViewItem class 548, 566
BeginInit method, in ISupportInitialize interface 51
BeginUpdate method
example (ListBox) 319
example (ListView) 549
in ListBox class 309
binary operators 711
Binding class 654, 657
members 654
BindingComplete event
in Binding class 654
in BindingManagerBase class 658
in BindingSource class 649
BindingContext class 657
example 658
BindingContext property 657
BindingList<T> class 640
members 640
BindingManagerBase class 657-658
example 658
members 658
BindingManagerBase property 654
BindingMemberInfo property 654
BindingMemberInfo structure 654
BindingNavigator class 661
members 661
Bindings property, in BindingManagerBase class 658
BindingSource class 649
and currency manager 660
members 649
BindingSource property, in BindingNavigator class 661
Bitmap class 372
file formats 175
file handles 144
from resource 428
rotating 375
transparency 438
bitmap colors 418
Bitmap Editor window 417
bitmaps
common files for 420
creating programmatically 417
BlinkRate property 264
BlinkStyle property 264
Blocks value 408
BlockSize property 286
BoldedDates property 395
bool keyword 720
bool type 130, 718
Boolean class 718
Border3DStyle enumeration 110, 113-114, 489
borders, creating 489
BorderSides property, in ToolStripStatusLabel class 110
BorderStyle enumeration 49, 199
BorderStyle property
for dialog box 195
in Label class 199
in Panel class 200
in SplitContainer class 512
in ToolStripStatusLabel class 110
in TreeView class 515
in UserControl class 397
Bottom property 18
Bottom value
in AnchorStyles enumeration 29
in DockStyle enumeration 31
BottomCenter value 227
BottomLeft value 227
boundary classes 153
Bounds property
in DrawItemEventArgs class 370
in ListViewItem class 548
in ListViewSubItem class 554
boxing 9, 732
break keyword 720
BringToFront method 71
example 600
Browsable attribute 501
Brush class 372
compared with Pen 374
Brushes class 372
BufferedStream class 167
build actions 427
Built-in types 718
Button class 70, 243
class hierarchy 68
members 243
Button property, in MouseEventArgs class 275
Button1 value 182
Button2 value 182
Button3 value 182
ButtonBase class 70, 242
alignment 227
members 242
ButtonClick event 470
ButtonDoubleClick event 470
buttons 240
Byte class 718
byte keyword 720
byte type 718
C
c documentation tag 733
c format code for numbers 349
C# compiler 5
/doc switch 40
/main switch 580
compilation symbols 581
executables 121
libraries 121
Main method 11
modules 121
output files 121
output types 121
references 5, 21
C# file extension 4
C# language
@ prefix 719
abstract classes 25
access methods 123
built-in types 718
classes 118
constructors 157
delegates 23
documentation lines 40
documentation tags 733
downcasts 104
exceptions 56
fields 52
foreach keyword 106
foreach, implementing 132
indexers 138
inheritance 132, 138
is keyword 130
keywords 719
namespaces 6
objects 128
operators 718
overrides 130
partial files 41
properties 18
regions 42
sealed classes 12
source files 118
static classes 40
type conversion 103
types 8, 104
using keyword 15, 189
CacheVirtualItems event 574
CalendarBackground value 402
CalendarFont property 385
CalendarForeColor property 385
CalendarMonthBackground property 385
CalendarTitleBackColor property 385
callable entity 717
Cancel property 191
in PrintPageEventArgs class 669
in TypeValidationEventArgs class 237
Cancel value 185
CancelAsync method, in BackgroundWorker control 410
CancelButton property 194, 242
for dialog box 195
CancelCurrentEdit method 658
CancelEdit method, in IEditableObject interface 644
CancelEdit property
in LabelEditEventArgs class 566
in NodeLabelEditEventArgs class 534
CancelEventArgs class 191, 523
CancellationPending property 410
CancelNew method
in BindingList class 640
in ICancelAddNew interface 640
CanExtend method
in ErrorProvider class 264
in IExtenderProvider interface 261
CanFocus property 490
CanGoBack property 683
CanOverflow property 95, 453
in MenuStrip class 75
in ToolStrip class 446
CanSelect property 491
in ToolStripLabel class 110
CanUndo property 224
Capacity property 135
in CollectionBase clas 136
Cascade value 603
case keyword 720
CaseInsensitiveComparer class 558
casting 719
compared to as keyword 103
catch (exception) 56
catch blocks 57, 729
catch keyword 720, 729
example 171
Category attribute 501
CausesValidation property 265
in ToolStripControlHost class 471
CDialog class 195
cell styles
assigning 622
default values 623
CellBorderStyle property 200, 612
CellClick event 613
CellEnter event 613
CellMouseDown event 613
example 628
CellPaint event 200
cells 630
Cells property, in DataGridViewRow class 628
CellTemplate property 620
CellType property 620
CellValueNeeded event 613
Center value, in HorizontalAlignment enumeration 227
CenterImage value 101
Char class 718
char keyword 720
char type 718
character elements, in MaskedTextBox 233
CharacterCasing enumeration 225
CharacterCasing property 225
check box button 240
CheckAlign property
in CheckBox class 251
in RadioButton class 247
CheckBox class 251
members 251
CheckBoxes property
in ListView class 542
in TreeView class 515
checked keyword 720
Checked property
example (ToolStripMenuItem) 106
in CheckBox class 251
in DateTimePicker class 385
in RadioButton class 247
in ToolStripButton class 450, 463
in ToolStripMenuItem class 80, 105
Checked value 251
CheckedChanged event 80
in CheckBox class 251
in RadioButton class 247
in ToolStripButton class 450
CheckedItems property, CheckedListBox class 310
CheckedListBox class 310
CheckFileExists property 25, 162
CheckListBox class 302
CheckOnClick property, in ToolStripButton class 450
CheckState enumeration 80, 251
CheckState property 251
in ToolStripButton class 450
in ToolStripMenuItem class 80
CheckStateChanged event 80, 251
in ToolStripButton class 450
child nodes 514
cipher block chaining 283
CipherMode enumeration 283
class hierarchy 68
class inheritance 213
class keyword 118, 720
classes 7, 704
Clear method
in ArrayList class 135
in CollectionBase class 136
in ErrorProvider class 264
in ListView class 543
ClearItems method, in Collection class 142
ClearSelected method, in ListBox class 309
Click event
in Control class 71
in ToolStripItem class 86
ClickedItem property 103
ClickOnce deployment 696
example 698
history 697
installing 699
publishing 698
security 699
signing 699
Clicks property 275
ClientRectangle property 71
in ToolStripItem class 86
ClientSize property 690
Clipboard class 224, 420
Clone method
in ColumnHeader class 552
in DataGridViewBand class 627
in DataGridViewCell class 632
Close method 188
in Form class 89, 194
in TextReader class 167
in TextWriter class 168
in ToolStripDropDown class 95
relationship to Dispose 188
vs. Application.Exit method 89
Closed event, in ToolStripDropDown class 95
CloseReason property 191
CloseUp event 385
Closing event 191
in ToolStripDropDown class 95
code documentation tag 733
code, Web Page documentation 40
Collapse method 519
CollapseAll method 515
Collection<T> class 140, 142
members 142
CollectionBase class 134
members 136
Color structure 165, 276, 372
empty value 505
example 387
ColorConverter class 505
ColorDepth property, in ImageList class 454
ColorDialog class 165
example 387
ColorEditor class 505
Colors window 419
ColorTabControl class 371
column classes 621
Column property 557
ColumnClick event 543, 557
ColumnClickEventArgs class 557
ColumnCount property, in TableLayoutPanel class 200
ColumnHeader class 552
members 552
ColumnHeaderAutoResizeStyle enumeration 552
ColumnHeaderCollection class 551
ColumnHeaderMouseClick event 613
ColumnIndex property, in DataGridViewCell class 632
Columns property 543
in DataGridView class 612, 619
ColumnStyle class 200
example 343
ColumnStyles property 200
COM 132
ComboBox class 302, 329
assigning text 339
auto completion 341
custom drawing 377
dropdown styles 331
dropdown width 331
dropdown, showing 340
list size 336
members 329
selecting items 332
selecting text 332
sorting 337
string lookup 340
ComboBoxStyle enumeration 331
members 331
common image library 420, 454
CommonAppDataRegistry property 12
CommonDialog class 165
Compare method 558
Comparer class 558
Comparer<T> class 141
CompareTo method
example (DateTime) 560
example (Int32) 560
compilation symbols 581
Compile value as build action 427
compiled 702
compiling .NET programs 5
complex data binding 637, 647
Component class 69
design mode 504
in a Form 259
Component Model namespace 498
component tray 76
ComponentResourceManager class 421
components 69
conditionals 719
Configuration Manager 581
ConfigurationErrorsException class 689
Console class, system beep 232
const keyword 721
constants 705
constructors 8, 712
invoking existing constructor 589
Container class, disposal 259
container controls 70
ContainerControl class 70
Contains method 133, 135
ContainsFileDropList method 420
Content value, as build action 427
ContentAlignment enumeration 227, 241
ContentBounds property 632
context menu 72
ContextMenu class 73, 93
ContextMenu property 93
ContextMenuStrip class 74, 93, 95, 447
ContextMenuStrip property 71, 74, 93
example (PictureBox) 94
in DataGridViewBand class 627
continue keyword 721
Continuous value 408
Control class 68, 71
anchoring 311
context menus 74
control collections 18
designers 504
drag-and-drop 673, 676
drag-and-drop example 675
drop example 677
implementing custom controls 489
in Web forms 68
key preprocessing 273
layout engines 473
members 71, 674
mouse events 275
mouse movement 209
point conversion 208
property editors 504
scrolling offset 365
simple binding example 655
suspending layout 51
Tag property 101
type converters 505
validation 265
z-order 600
Control property 271
in Binding class 654
in SystemColors class 277
Control value 271
Control.ControlCollection class 18
ControlBindingsCollection class 653, 657
ControlBox property 194
and icons 424
ControlCollection class 18
ControlDesigner class 504
ControlPaint class 488
controls 17
anchoring 29
cutting and pasting 367
docking 30
in MDI applications 577
scrolling 491
Controls property 18, 71
example (Form) 18
ControlStyles enumeration, Selectable value 490
ControlUpdateMode property 654
conversion operators 711
Convert class 174, 286
Copy method 224
CopyTo method 133, 135
Count property 133, 135
in BindingManagerBase class 658
in CollectionBase clas 136
CountItem property 661
Create method
example (XmlReader) 428
for SymmetricAlgorithm classes 286
CreateCells method, in DataGridViewRow class 628
CreatePrompt property 163
CryptographicException class 283
example 290
Cryptography namespace. See System.Security.Cryptography namespace
CryptoReader class 287
CryptoStream class 283
example 284
CryptoStreamMode enumeration 283
CryptoTextBase class 284
CryptoWriter class 286
csc. See C# compiler
culture 346
CultureInfo class
example 391
cultures 131
culture-specific resources 421
currency format code 349
CurrencyGroupSizes property 349
CurrencyManager class 658, 660
members 660
CurrencyManager property, in BindingSource class 649
CurrencyPositivePattern property 349
CurrencySymbol property 349
current culture 130
Current property 133
in BindingManagerBase class 658
in BindingSource class 649
in Cursor class 425
CurrentCell property 612
CurrentChanged event
in BindingManagerBase class 658
in BindingSource class 649
CurrentCulture property 12
CurrentDate class 237
CurrentDirectory property 158
Cursor class 425
assigning 425
in controls 71
Cursor property 71
cursors 489
Cursors class 425
graphics 425
custom collections 638
custom controls
class attributes 498
implementation features 489
member attributes 501
tree views 523
See also user controls
custom cultures 737
custom designers 504
Custom value 393
CustomFormat property 385, 393
CustomSource value 344
cutting and pasting, in Visual Studio 367
D
d format code
for date-times 390
for numbers 349
d suffix 721
Daemen, Joan 282
data binding 637
classes 657
data sources 617
data collections
classes 133
interfaces 132
Data property
in DragEventArgs class 677
in Exception class 59
DataBindingComplete event 613
DataBindings property 657
example 655
DataBoundItem property, in DataGridViewRow class 628
DataConnector class 648
DataContainer class 648
DataError event 613
in BindingManagerBase class 658
DataFormats class 675
file format 675
text format 675
DataGrid class 608
DataGridColumn class, derived classes 621
DataGridView class 612
AllowUserTo properties 612
bands 626
cells 630
columns 620
custom columns 631
elements 630
members 612
related classes 609
rows 627
sources of data 617
DataGridView property 631
DataGridView.HitTestInfo class 610
DataGridViewBand class 627
members 627
DataGridViewButtonCell class 621
DataGridViewButtonColumn class 621
DataGridViewCell class 632
cell styles 622
customizing 631
members 632
DataGridViewCellBorderStyle enumeration 612
DataGridViewCellCollection class 627
DataGridViewCellMouseEventArgs class 629
DataGridViewCellStyle class 612, 623
members 623
DataGridViewCheckBoxCell class 621
DataGridViewCheckBoxColumn class 621
DataGridViewColumn class 620
columns 618
customizing 631
members 620
DataGridViewComboBoxCell class 621, 625
DataGridViewComboBoxColumn class 621, 624
display styles 626
members 624
DataGridViewComboBoxDisplayStyle enumeration 626
DataGridViewElement class 631
members 631
DataGridViewElementStates enumeration 630
DataGridViewHeaderCell class 609
DataGridViewImageCell class 621
DataGridViewImageColumn class 621
DataGridViewLinkCell class 621
DataGridViewLinkColumn class 621
DataGridViewRow class 628
members 628
DataGridViewTextBoxCell class 621
DataGridViewTextBoxColumn class 621
DataMember property 264
in BindingSource class 649
in DataGridView class 612
DataNavigator class 660
DataObject class 674
example 675
DataPropertyName property 620
example 622
with DataSet class 619
DataRow class 646
DataRowView class 617, 644
DataSet class 617, 619
DataSource property 264
example (ListBox) 314
in Binding class 654
in BindingSource class 649
in DataGridView class 612
in DataGridViewComboBoxCell class 625
in DataGridViewComboBoxColumn class 624
in ListControl class 301
DataSourceChanged event, in ListControl class 301
DataSourceNullValue property
in Binding class 654
in DataGridViewCellStyle class 623
DataSourceUpdateMode property 654
DataTable class 617, 619
DataView class 134, 638
date and time values, customizing 391
Date property, in DateTime structure 403
Date value 402
DateChanged event 395, 404
dates and times, formatting 390
DateSelected event 395
DateSeparator property 391
DateTime structure 126
current time 127
date comparison 403
string parsing 174, 229
DateTimeFormatInfo class 390
example 391
DateTimePicker class 385
formatting 393
members 385
DateTimePicker control, compared to MaskedTextBox 387
DateTimePickerFormat enumeration 393
members 393
DayNames property 391
DayOfWeek value 402
days of the week, specifying 391
DCE 132
Deactivate event 194
in MDI forms 598
Debug configuration 581
DEBUG symbol 581
Decimal class 718
decimal format code 349
decimal keyword 721
decimal type 718
declaration space 702
decrement operator (++) 719
Decrypt method 282
default constructor 712
in structures 714
default keyword 721
default namespace 702
default value, for built-in types 718
DefaultCellStyle property 612
in DataGridViewBand class 627
DefaultDropDownDirection property 446
DefaultEvent attribute 498
DefaultExt property 25
DefaultInvariant comparer 558
DefaultItemChanged event 470
DefaultItemHeight field 309
DefaultNewRowValue property 632
DefaultProperty attribute 498
DefaultSettingValueAttribute class 689
DefaultValue attribute 501
Delegate class 717
delegate keyword 23, 361, 721
example 633
delegates 22, 717
operators 719
See also anonymous methods
delete, in C++ 10
Delta property 275
descending order 557
Descending value 557
Description attribute 501
Description property, in FolderBrowserDialog class 334
Deselected event
example (TabControl) 366
in TabControl class 359
Deselecting event, in TabControl class 359
Designer attribute 498
DesignerAttribute class 504
DesignerCategory attribute 498
designers 498
DesignMode property 504
DesignOnly attribute 501
destructors 713
Details value 547
detents 275
deterministic scope 189
dialog boxes
converting to MDI child 596
hiding 211
modal 181
nonmodal 181
properties required 195
dialog interface style 508
DialogResult enumeration 24-25, 182, 185
members 185
DialogResult property 194
in Button class 243
in IButtonBase interface 242
Dictionary<K,V> class 141
DirectionVertical value 375
Directory class 331
DirectoryNotFoundException class 331
Displayed property
in DataGridViewBand class 627
in DataGridViewCell class 632
DisplayedRowCount method 613
DisplayIndex property 619
in ColumnHeader class 552
in DataGridViewColumn class 620
DisplayMember property 315
in DataGridViewComboBoxColumn class 624
in ListControl class 301
DisplayName attribute 501
DisplayRectangle property 71
DisplayStyle property
in DataGridViewComboBoxColumn class 624
in ToolStripItem class 86
Dispose method 24, 42, 145
in DataGridViewBand class 627
in FileDialog class 25
relationship to Close 188
DividerWidth property 620
DLL 118
do keyword 721
Dock property 30, 71
example (MonthCalendar) 398
in StatusStrip class 108
relationship to Anchor 30
values 30
See also Anchor property
DockEditor class 504
DockPadding property 365
DockStyle enumeration 30-31
values 31
Document property, in WebBrowser class 683
documentation tags 40, 733
DocumentCompleted event 683
DoDragDrop method 674
signature 674
DoEvents method 12, 425
DomainUpDown class 441
double buffering 490
Double class 718
double keyword 721
double type 718
DoubleBuffered property 490
DoubleClick event 275
example (ListBox) 316
downcasting 104
example (Form) 599
DoWork event 410
drag-and-drop 673
Control members 673
example (ListView) 679
steps to perform 673
DragDrop event 674, 676
in ToolStripItem class 86
DragDropEffects enumeration 674
values 674
DragEnter event 674, 676
DragEventArgs class 677
members 677
DragLeave event 674
DragOver event 674
Draw event, in ToolTip class 257
DrawBackground method 370
DrawBorder3D method 489
DrawColumnHeader event 544
DrawEllipse method, example 488
DrawFocusRectangle method 370, 490
in DrawListViewItemEventArgs class 571
DrawImage method 375
drawing classes 488
Drawing namespace 372
types 372
drawing, tooltips 261
Drawing2D namespace 488
DrawItem event 370
example (ListBox) 380
in ComboBox class 329
in ListBox class 309
in ListView class 543
in TabControl class 359
DrawItemEventArgs class 370
members 370
DrawItemState enumeration 370-371, 380
DrawListViewItemEventArgs class 544, 571
DrawMode enumeration 377
members 377
DrawMode property
example (TabControl) 371
in ComboBox class 329
in list controls 377
in ListBox class 309
in TabControl class 359, 370
DrawNode event 515
DrawRectangle method 372
DrawString method, example 374, 488
DrawStringDisabled method, example 488
DrawSubItem event 544
DrawToolTipEventArgs class 261
DropDown event
in ComboBox class 329
in DateTimePicker class 385
dropdown events in menus 100
DropDown property 98
example 99
DropDown value, in ComboBoxStyle enumeration 331
DropDownAlign property 385
DropDownButtonSelected property 470
DropDownClosed event 98
in ComboBox class 329
DropDownHeight property
in ComboBox class 329
DropDownItemClicked event 98, 102
DropDownItems property 84, 98
example (ToolStripMenuItem) 84
DropDownList value 331
DropDownOpened event 98
DropDownOpening event 98
DropDownStyle property, in ComboBox class 329
DropDownWidth property
example (ComboBox) 330
in ComboBox class 329
in DataGridViewComboBoxColumn class 624
DroppedDown property 340
in ComboBox class 329
dynamic link library. See DLL 118
E
e format code for numbers 349
Edit menu, standard items 150
EditingControl property 612
EditMode property 612
Editor attribute 501
EditorAttribute class 504
EditorBrowsable attribute 501
EditPanel property 612
EditType property, in DataGridViewCell class 632
Effect property, in DragEventArgs class 677
else keyword 721
Embedded Resource value, as build action 427
Empty field, in Color structure 505
Enabled property
example (ToolStripMenuItem) 106
in Control class 71
in Timer class 440
in ToolStripItem class 86
in ToolStripMenuItem class 80
EnableVisualStyles method 12
Encoder class 285
Encoding class 285
Encrypt method 282
encryption 282
EndCurrentEdit method 658
EndEdit method
in BindingSource class 648
in IEditableObject interface 644
EndInit method, in ISupportInitialize interface 51
EndNew method
in BindingList class 640
in ICancelAddNew interface 640
endregion directive 42
EndUpdate method
example (ListBox) 319
example (ListView) 549
in ListBox control 309
EnsureVisible method 543
in ListViewItem class 548
Enter event 265
example (Form) 598
in MDI forms 598
entry point 11, 702, 732
Enum class 716
enum keyword 721
Enum structure 103, 753
members 104
enumerations 716
Environment class 158
members 158
Environment.SpecialFolder enumeration 158
Equals method
example (string) 106
in object class 129
Error property, in IDataErrorInfo interface 618
Error value 182
ErrorBlinkStyle enumeration 264
ErrorIconAlignment enumeration 264
ErrorIconBounds property 632
ErrorProvider class 264
members 264
ErrorText property
in DataGridViewCell class 632
in DataGridViewRow class 628
event handlers 22, 708
naming convention 53
event keyword 722
example 641
EventArgs class 755
EventHandler class 102
EventHandler delegate 22
events 22, 708
creating 490
in Visual Studio 87
multiple handlers 22
example documentation tag 733
Exception class 56, 59, 729
members 59
Message property 58
exception documentation tag 733
exception handling 56
exceptions 56, 729
alternatives to 56
catching unhandled 184
performance 56
reasons to customize 170
when to handle 57
Exists method, example (File) 530
Exit method 12, 158
ExitCode property 158
ExitThread method 12
ExpandAll method 515, 519
explicit keyword 722
explicit type conversion 711
explorer interface style 510
exponential notation format code 349
extender providers 256, 261
extern keyword 722
F
f format code for date-times 390
f suffix 722
FailFast method 158
false keyword 722
false value 130
fields 17, 52, 705
contrasted with properties 126
FIFO queue 134
File class 169, 282
encryption 282
file extensions 161
projects 37
solutions 37
File menu, standard items 150
FileDialog class 23, 25
members 25
FileDrop field 675
FileName property 25
in OpenFileDialog 26
FileNameEditor class 505
FileNames property 25
FileOK event 25
files, renaming 46
FileStream class 167
FileSystem value 344
FileSystemDirectories value 344
Fill value, in DockStyle enumeration 31
FillRectangle method 372
example 417
Filter property
example (OpenFileDialog) 23
in FileDialog class 25
finally keyword 722, 729
example 171
Find method, in IBindingList interface 639
FindString method
example (ComboBox) 340
in ComboBox class 329
in ListBox class 309
FindStringExact method, in ComboBox class 329
FindToolStrip method 591
FirstDisplayedCell property 612
FirstNode property 519
fixed keyword 722
FixedPanel property 512
FixedSingle value 198
FlatAppearance property 242
FlatStyle enumeration 199
FlatStyle property 199
in ButtonBase class 242
flickering 490
float keyword 722
float type 718
FlowLayoutPanel class 193, 497
Flush method, in TextWriter class 168
FlybyTextProvider class 262
focus events 265
focus rectangles 490
Focus value, in DrawItemState enumeration 371
Focused property, in ListViewItem class 548
FocusedItem property, example (ListViewItem) 567
FolderBrowserDialog class 334
example 335
members 334
FolderNameEditor class, example 505
Font class 165, 372
example 670
GetHeight method 670
Font property
in DataGridViewCellStyle class 623
in DrawItemEventArgs class 370
in ListViewItem class 548
in ListViewSubItem class 554
FontDialog class 165
for keyword 722
foreach keyword 106, 722
foreach statement, supporting in classes 132
ForeColor property
in DataGridViewCellStyle class 623
in DrawItemEventArgs class 370
in ListViewItem class 548
in ListViewSubItem class 554
ForeColorChanged event, example 488
Form class 7, 70, 192, 194, 242
activation 467
as dialog box 195
background color 276
borderless (example) 633
class hierarchy 70
close events 191
Close method 89
closing 188
Controls property 51
default buttons 242
display state 600
displaying a Form 12
hiding 188
icons 420
keyboard events, receiving 270
MDI child layout 603
MDI children 599
MDI related members 578
members 194
modal vs modeless 181
modeless dialogs 207
mouse movement 209
mouse position 208
owned forms 208
positioning (example) 633
sizing 18
Form controls, resizing 27
format characters
for date-times 391
for numbers 350
format codes
for dates 390
for numbers 349
for times 390
Format event
in Binding class 654
in ListControl class 301
Format interfaces 346
Format method
in IFormatProvider interface 346
in String class 350
Format property
in DataGridViewCellStyle class 623
in DateTimePicker class 385, 393
FormatChanged event, in DateTimePicker class 385
FormatException class 174, 229, 348
FormatException exception, example 730
FormatInfo property
in Binding class 654
in ListControl class 301
FormatProvider property 351
in DataGridViewCellStyle class 623
FormatString property 351
in Binding class 654
in ListControl class 301
FormattingEnabled property 301, 351
FormBorderStyle enumeration 195
FormBorderStyle property 194
FixedSingle value, example 198
FormClosed event 194
FormClosing event 191, 194
FormClosingEventArgs class 191
members 191
FormDialog class (sample) 196
Forms Designer. See Windows Forms Designer 46
FormWindowState enumeration 600
example 599
values 600
FromBase64String method 286
FromImage method 375
example 417
FromStream method, example 428
Frozen property, in DataGridViewBand class 627
full date and time format code 390
FullDateTimePattern property 390
FullPath property 519
FullRowSelect property, in TreeView class 515
fully qualified name 7, 16
G
g format code
for date-times 390
for numbers 349
garbage collection 10
with destructor 714
GC class 714
See also garbage collection
general date and time format code 390
general numeric format code 349
generic collections 142, 617
generic namespace. See System.Collections.Generic namespace
generics 139, 732
example 139
get accessor 707
get keyword 123
GetBaseException method 59
GetBytes method 286
GetCellCount method 613
GetColumnSpan method 200
GetCommandLineArgs method 158
GetControlFromPosition method 200
GetDataPresent method 677
GetDisplayRange method 395
GetEnumerator method 132, 136, 141
GetEnvironmentVariable method 158
GetError method 264
GetExtension method, example (Path) 530
GetFileName method 352
GetFileNameWithoutExtension method 127
GetFiles method 331
GetFolderPath method 158
example 157
GetFormat method, in IFormatProvider interface 346
GetHashCode method 129
reason to override 128
GetHeight method, example 670
GetIconAlignment method 264
GetIconPadding method 263
GetItemProperties method 617
in BindingManagerBase class 658
in BindingSource class 649
GetItemText method 301
example 381
example (ListBox) 379
GetList method 617
GetLogicalDrives method 158
GetManifestResourceInfo method 427
GetManifestResourceNames method 427
GetManifestResourceStream method 427
GetNextControl method 71
GetNodeAt method 515
GetNodeCount method 515
GetObject method, in ResourceManager class 423
GetPixel method, example 413
GetProperties method 386
GetProperty method 386
GetRowSpan method 200
GetSelected method
example (ListBox) 321
in ListBox class 309
GetString method, in ResourceManager class 423
GetTabRect method 359
GetToolTip method 257
GetType method 129, 386
GetValue method, in PropertyInfo class 387
GiveFeedbacl event 674
global namespace 702
GoForward method, in WebBrowser class 683
GoHome method 683
GoSearch method 683
GotFocus event 265, 490
goto keyword 723
Graphics class 372
drawing ellipses 488
drawing strings 374, 488
from images 375, 417
Graphics property
in DrawItemEventArgs class 370
in MeasureItemEventArgs class 378
in PaintEventArgs class 487
in PrintPageEventArgs class 669
GraphicsPath class 488
GridColor property 612
GripStyle property
example 463
in MenuStrip class 75
in StatusStrip class 108
in ToolStrip class 446
Group property, in ListViewItem class 548
GroupBox class 248
members 248
GroupBox control 70
Groups property, in ListView class 544
GrowStyle property 200
example 220
GZipStream class 167
H
HACK comments 157
handle (exception) 56
Handled property
in KeyEventArgs class 271
in KeyPressEventArgs class 232
HasDropDownItems property 98
Hashtable class 134, 262
example 279
HasMorePages property 669
header files 118
HeaderCell property
in DataGridViewColumn class 620
in DataGridViewRow class 628
HeaderStyle property, in ListView class 543
HeaderText property, in DataGridViewColumn class 620
heap 10, 703
Height property 18
example (Image) 113
in DataGridViewRow class 628
in Font class 557
in Form class 18
Help menu, standard items 150
help text 266
HelpButton property for dialog box 195
HelpKeyword attribute 498
HelpLink property 59
HelpProvider class 266
HelpRequest event, in FileDialog class 25
HelpRequested event 195
Hexidecimal format code 349
Hidden value 75
Hide method 188, 216
in Form class 211
HideDropDown method 98
HideSelection property in TreeView class 515
HistoryList value 344
HitArea enumeration 402
values 402
HitArea property in MonthCalendar.HitTestInfo class 401
HitTest method 401
in DataGridView class 613
in MonthCalendar class 395
HitTestInfo class 401
example (MonthCalendar) 404
in DataGridView class 610
members 401
Horizontal property, in Padding structure 365
HorizontalAlignment enumeration 227, 241
HorizontalScroll property 365
HorizontalScrollBar property, in ListBox control 309
HotTrack property 359
HotTracking property, in TreeView class 515
hours, specifying 391
HoverSelection property 542
HScrollBar class 480
example 494
HScrollProperties class 365
HtmlDocument class 683, 685
I
IBindingList interface 617, 639
members 639
with IEditableObject interface 644
IButtonControl interface 242, 292
ICancelAddNew interface 640, 648
ICollection interface 132-133, 141
members 133
ICollection<T> interface 141
IComparer interface 558
members 558
IComponent interface 69, 617
Icon class 420
Icon Editor 420
Icon property 194, 420
in ErrorProvider class 264
icons, common files for 420
ICryptoTransform interface 283
example 284
ICustomFormatter interface 346, 352
members 346
IDataErrorInfo interface 618
IDataObject interface 677
IDE 33
identifiers, @ prefix 719
IDisposable interface 69, 145
members 145
Idle event 12
IEditableObject interface 617, 644
members 644
IEnumerable interface 132, 141
members 132
IEnumerable<T> interface 141
IEnumerator interface 133
members 133
IEnumerator<T> interface 141
IExtenderProvider interface 257, 261
members 261
if keyword 723
IFormatProvider interface 301, 346
members 346
IFormattable interface 301, 346
example (Photograph) 347
members 346
Ignore value 185
IList interface 133, 617
as data source 617
Contains method 133
members 133
IList<T>.Enumerator 141
IListSource class 617
Image class 26, 372, 454
from streams 428
Image Collection Editor dialog 455
Image Editor toolbar 419
Image property 416
changing 491
example (PictureBox) 26
in ButtonBase class 242
in Label class 199
in ToolStripItem class 86
in ToolStripStatusLabel class 113
overriding 495
ImageAlign property
in ButtonBase class 242
in Label class 199
ImageCollection class 454
ImageIndex property 454
in ButtonBase class 242
in ColumnHeader class 552
in Label class 199
in TabPage class 362
in TreeView class 516
ImageKey property
example (TreeView) 538
in ColumnHeader class 552
in ListViewItem class 548
in TreeNode class 518
in TreeView class 516
ImageLayout property 622
ImageList class 242, 454
example (TreeView) 537
members 454
ImageList property 454
in ButtonBase class 242
in ColumnHeader class 552
in Label class 199
in TabControl class 359
in TreeView class 515
ImageList.ImageCollection class 454
key names 457
ImageListStreamer class 456
Images property, in ImageList class 454
ImageSize property, in ImageList class 454
IMessageFilter interface 12
implicit keyword 723
implicit type conversion 711
in keyword 723
include documentation tag 733
Increment method, in ProgressBar control 409
increment operator (++) 719
Indent property, in TreeView class 514
index operator 719
Index property
in ColumnHeader class 552
in DataGridViewBand class 627
in DrawItemEventArgs class 370
in ListViewItem class 548
in MeasureItemEventArgs class 378
in TreeNode class 519
indexers 138, 710
IndexFromPoint method, in ListBox class 309
IndexOf method 135
IndexOutOfRangeException class 731
Information value 182
inheritance 7, 213
InheritedStyle property 622
InitialDelay property 257
InitialDirectory property 25
example (OpenFileDialog) 163
InitializeEditingControl method 632
InnerException property 59
InnerList property 136
InputText property 234
Insert value, in MergeAction enumeration 583
InsertItem method, in Collection<T> class 142
installation. See setup projects
Installer class 694
instance constructors 712
int keyword 723
Int type 718
Int16 class 718
Int32 class 718
Int64 class 718
IntelliSense 501
interactive development environment 33
interface keyword 723
interface styles 508
interfaces 132, 526, 715
collection related 132
comparison with abstract class 132
data binding 617
Intermediate value 251
internal keyword 723
internal modifier 216
internationalization 12
Interval property 440
Invalidate method 71, 491
in ToolStripItem class 86
InvalidateCell method 613
InvalidateColumn method 613
InvalidateRow method 613
InvalidCastException class 103-104
InvalidOperationException class, example 646
invariant culture 131
IOException class 170
IPersistComponentSettings interface 490
IRaiseItemChangedEvents interface 640
is keyword 130, 723
IsBalloon property 257
IsBinding property 654
IsBindingSuspended property, in BindingManagerBase class 658
IsBusy property
in BackgroundWorker class 410
in WebBrowser class 683
IsCurrentCellDirty property 612
IsCurrentCellInEditMode property 612
IsCurrentRowDirty property 612
IsDataBound property, in DataGridViewColumn class 620
IsEditing property 519
IsExpanded property 519
IsInEditMode property 632
IsInputChar method 273
IsInputKey method 273
IsLink property, in ToolStripLabel class 110
IsLoadCompleted property 432
IsMdiChild property 194, 578
IsMdiContainer property 578
example 577
IsMdiWindowListEntry property 606
IsMdiWindowListItem property 582
IsNewRow property 628
IsNullOrEmpty method 348
ISO 8601 standard 390
IsOnOverflow property 453
IsSelected property, in TreeNode class 519
IsShortcutDefined method 591
IsSorted property, in IBindingList interface 639
IsSortedCore property 640
IsSplitterFixed property 512
ISupportInitialize interface 51
IsValidInput property 237
IsValidShortcut method 591
Item property 133
in ApplicationSettingsBase class 689
in BindingSource class 649
in DataGridView class 612
in IDataError interface 618
in LabelEditEventArgs class 566
ItemActivate event 543, 570
ItemActivation enumeration 569
members 569
ItemAdded property 446
ItemChanged event, in CurrencyManager class 660
ItemClicked property 446
ItemDrag event 515, 678
in ListView class 543
ItemHeight property
in list controls 378
in ListBox class 309
in MeasureItemEventArgs class 378
ItemRemoved property 446
Items property
example (ListBox) 319
in ComboBox class 329
in DataGridViewComboBoxColumn class 624
in ListBox class 309
in ListView class 543
in ToolStripDropDown class 97
ItemSize property 359
in TabControl class 377
ItemWidth property, in MeasureItemEventArgs class 378
iterators 728
ITypedList interface 617
J
JSplitPane class 511
K
keyboard events 269
keyboard shortcuts
enumeration 84
for Add New Item dialog 417
for Solution Explorer 120
keyboard, preprocessing 273
KeyChar property 232
KeyCode property 271
KeyData property 271
KeyDown event 269
in ToolStripControlHost class 471
KeyedCollection class 140
KeyEventArgs class 271
members 271
KeyPress event 71, 231, 269
example (TextBox) 232
KeyPressEventArgs class 232, 269
members 232, 269
KeyPreview property 270
Keys enumeration 80, 84, 271
Keys.Control value 84
Keys.L value 84
KeySize property 286
KeyState property 677
KeyUp event 269
in ToolStripControlHost class 471
KeyValue property 271
KeyValuePair<K,V> structure 141
L
L suffix 724
Label class 199
alignment 227
alignment properties 227
AutoSize property 226
example (image) 681
members 199
Label property
in LabelEditEventArgs class 566
in NodeLabelEditEventArgs class 534
LabelEdit property 515, 543, 566
LabelEditEventArgs class 566
members 566
labels, status bars 109
LabelWrap property 543
LargeChange property
in ScrollBar class 480
in TrackBar class 434
LargeIcon value 547
LargeImageList property 543
LayoutCompleted property 446
LayoutEngine class 473
LayoutEngine property, in Control class 473
LayoutMdi method 578, 603
LayoutStyle property, in ToolStrip class 446
LayoutStyleChanged property 446
Leave event 265
in MDI forms 598
in ToolStripControlHost class 471
Left property 18
Left value
in AnchorStyles enumeration 29
in DockStyle enumeration 31
in HorizontalAlignment enumeration 227
LeftRightAlignment enumeration 385
Level property, in TreeNode class 519
libraries 702
LIFO queue 134
LineColor property, in TreeView class 514
Lines property 224
Link class 684
LinkArea property 292
LinkBehavior enumeration 110, 292
LinkBehavior property 292
in ToolStripLabel class 110
LinkClicked event, example 684
LinkClicked method 292
LinkColor property
in LinkLabel class 292
in ToolStripLabel class 110
LinkedList <T> class 141
LinkLabel class 679
example 681
Link class 684
link text 684
members 292
LinkLabel.Link class 684
LinkLabelLinkClickedEventArgs class 684
Links property 684
LinkVisited property, in ToolStripLabel class 110
list controls, formatting properties 351
list documentation tag 733
List property 136
in BindingSource class 649
List value 547
List<T> class 141
ListBox class 302, 309
contrasted with ListView 542
custom drawing 377
custom item text 315
item size 378
members 309
selection 315, 318, 321
updating 319
See also ListControl class
ListBox.ObjectCollection class 319
ListBox.SelectedIndexCollection class 321
ListBox.SelectedObjectCollection class 320
ListChanged event
in BindingList class 640
in BindingSource class 649
in IBindingList interface 639
ListChangedEventArgs class 639
members 639
ListChangedType enumeration 639
ListChangedType property 639
ListControl class 301
class hierarchy 301
data sources 314
members 301
ListItems value 344
ListView class 543
checkbox images 542
ColumnHeaderCollection class 551
columns 552
contrasted with ListBox 542
drag-and-drop 678
ItemActivate event 570
items 548
label edits 566
members 543
selection 563
sorting 557
subitem styles 554
tiling 557
virtual items 571
ListView control, custom drawing 544
ListView property 548
in ColumnHeader class 552
ListView, item activation 569
ListViewGroup class 544
ListViewItem class 542, 548
members 548
subitems 554
ListViewItem.ListViewSubItem class 554
ListViewItemSorter property 543, 557
ListViewSubItem class 542, 554
members 554
Load event 194, 451
in UserControl class 397
Load method, in SoundPlayer class 432
LoadAsync method, in SoundPlayer class 432
LoadCompleted event, in SoundPlayer class 432
LoadSettings method, in ToolStripManager class 591
LoadTimeout property 432
LocalApplicationData value 689
locale. See internationalization
LocalFileSettingsProvider class 689
Localizable attribute 501
localization 738
Location property 71
in MouseEventArgs class 275
lock keyword 724
logical operators 719
long date format code 390
long keyword 724
long time format code 390
long type 718
Long value 393
LongDatePattern property 390
LongTimePattern property 390
LostFocus event 265, 490
M
m format code, for date-times 390
m suffix 721
MachineName property 158
main menu. See menu bars
Main method 11, 732
MainMenu class 73
MainMenuStrip property and merged menus 582
makefiles 121
MakeTransparent method 438
managed heap 10
ManifestResourceInfo class 427
Margin property, example (Label) 203
MarginBounds property 669
Marquee 408
MarshalByRefObject class 69
marshaling 69
Mask property 234
character elements 235
MaskChanged event 234
MaskCompleted property 234
MaskedTextBox class 224, 234
custom providers 235
mask characters 235
members 234
type validation 237
MaskedTextBox control, compared to DateTimePicker 387
MaskedTextProvider class 235
MaskedTextProvider property 234
MaskFormat enumeration 234
MaskFull property 234
MaskInputRejected event 234
MatchOnly value 583
MaxDate property 385
in MonthCalendar class 395
MaxDropDown property, example 336
MaxDropDownItems property
in ComboBox class 329
in DataGridViewComboBoxColumn class 624
Maximize button, in MDI application 577
MaximizeBox property for dialog box 195
Maximized value, in FormWindowState enumeration 600
Maximum property
in ProgressBar class 409
in ScrollBar class 480
in TrackBar class 434
MaximumSize property 194
MaxLength property 224
in ComboBox class 329
MaxSelectionCount property 395
MDI child forms
and other controls 577
layout 606
MDI containers 576
background color 577
creating 577
MDI. See multiple document interface
MdiChildActivate event, example 593
MdiChildActivate property 578
MdiChildren property 578, 599
MdiClient class 577
MdiLayout enumeration 603
example 605
values 603
MdiParent property 578
MdiWindowListItem property 74, 582, 606
example 606
MeasureItem event
in list controls 378
in ListBox class 309
MeasureItemEventArgs class 378
members 378
MeasureString method, example (ListBox) 379
members 7, 704
memory management 10
MemoryStream class 167, 286
example 284
menu bars 72
Menu class 73
merging 582
menu merging, example 585
menu separators 75, 82
MenuActivate event 74
MenuItem class 73
merging 582
menus
context menus 93
conventions 150
merging 581
mnemonics 78
MenuStrip class 73-74, 447
MDI related members 582
MDI window menu 606
members 74
Merge method
example (ToolStripManager) 593
in ToolStripManager class 591
MergeAction enumeration 583
values 583
MergeAction property 86, 582-583
example 583, 585
MergeIndex property 582, 584
example 585
MergeMenu method 582
MergeOrder property 582
MergeType property 582
Message property
example 58
in Exception class 59
in TypeValidationEventArgs class 237
Message structure 273
MessageBox class 181
members 182
MessageBoxButtons enumeration 182
MessageBoxDefaultButton enumeration 182
values 182
MessageBoxIButtons enumeration, values 182
MessageBoxIcon enumeration 182
values 182
MessageBoxOptions enumeration 182
metadata 386
MetaDataChanged event, in CurrencyManager class 660
MethodBase class 59
methods 8, 706
Microsoft Development Environment 35
Microsoft newsgroups 179
Microsoft's News Server 179
MinDate property 385
in MonthCalendar class 396
Minimize button, in MDI application 577
MinimizeBox property 194
for dialog box 195
Minimized value, in FormWindowState enumeration 600
Minimum property
in ProgressBar class 409
in ScrollBar class 480
in TrackBar class 434
MinimumHeight property, in DataGridViewRow class 628
MinimumWidth property, in DataGridViewColumn class 620
minutes, specifying 391
mnemonics 18, 78
modal dialog box 181
Dispose method 189
Modal property 194
modeless dialog boxes 181, 196
displaying 207
Modifiers property 271
Modifiers setting 216
month day format code 390
MonthCalendar class 395
example 633
hit tests 401
members 395
MonthCalendar control, date changes 404
MonthCalendar.HitArea enumeration 402
MonthCalendar.HitTestInfo class 401
MonthDayPattern property 390
MonthlyBoldedDates property 396
MonthNames property 391
months, specifying 391
More Windows menu item 606
mouse events 275
MouseButtons enumeration 275
MouseDown event 275
example (extender provider) 277
example (Form) 276
example (MonthCalendar) 401
MouseEnter event 275, 490
MouseEventArgs class 210, 275
members 275
MouseEventHandler class 276
MouseHover event 275, 490
example (extender provider) 277
MouseHoverTime property 490
MouseLeave event 275, 490
example (extender provider) 277
MouseMove event 209, 275
MousePosition property 208
example (Form) 628
MouseUp event 71, 275
example (Form) 276
in ToolStripItem class 86
MouseWheel event 275
Move method, example (File) 530
MoveFirst method, in BindingSource class 649
MoveLast method, in BindingSource class 649
MoveNext method 133
in BindingSource class 649
MoveNextItem property 661
MovePrevious method, in BindingSource class 649
Msg property 273
MultiColumn property, in ListBox class 309
MultiExtended value 318
Multiline property 224, 359, 366
example (TextBox) 226
MultilineChanged event 224
multiple document interface style 509
multiple document interfaces 575
multiple selection modes, in ListBox class 321
multiple single document interface 509
MultiSelect property
in DataGridView class 612
in ListView class 543, 563
Multiselect property 162
example 176
MultiSimple value 318
multithreading 739
MyAlbumExplorer sample 516
MyListViewComparer class 558
MyPhotos application 34
N
Name property
example 51
in DataGridViewColumn class 620
in images 538
in ListViewSubItem class 554
namespace keyword 7, 724
namespaces 6, 702
naming conventions 119
naming conventions
controls in Visual Studio 48
event handlers 53
namespaces 119
properties 123
Navigate method 683
Navigating event 683
NegativeSign property 349
NetworkStream class 167
Never value 453
new keyword 8, 724
as modifier 130
New Project dialog box 36
NewIndex property, in ListChangedEventArgs class 639
NewLine property 168
newsgroups 179
NewValue property, in ScrollEventArgs class 485
NextMonthButton value 402
NextMonthDate value 402
NextNode property 518
NextVisibleNode property 518
No value 185
Node property
in NodeLabelEditEventArgs class 534
in TreeViewEventArgs class 523
NodeFont property 519
NodeLabelEditEventArgs class 534
members 534
NodeMouseClick event 515
Nodes property 519
in TreeView class 515
nodes, in tree view 515
NoMatches field 309
None value
as build action 427
in AnchorStyles enumeration 29
in AutoCompleteMode enumeration 342
in AutoCompleteSource enumeration 344
in DialogResult enumeration 185
in DockStyle enumeration 31
in Keys enumeration 271
in SelectionMode enumeration 318
in SortOrder enumeration 557
nonmodal dialogs. See modeless dialog boxes
Normal value 101
in DrawMode enumeration 377
in FormWindowState enumeration 600
in TabDrawMode enumeration 370
NotifyDefault method 243
in IButtonBase interface 242
NotSet value 624
Now property 127
Nowhere value, in HitArea enumeration 402
null keyword 724
NullValue property, in DataGridViewCellStyle class 623
NumberDecimalSeparator property 349
NumberFormatInfo class 347, 349
example 391
NumberGroupSeparator property 349
numbers
converting to strings 571
formatting 349
NumericUpDown class 441
example 573
O
object class 68, 128-129, 718
hash codes 279
members 129
vs. Object class 128
object class, inheritance from 118
object keyword 724
object type 718
ObjectCollection class, in ListBox class 319
objects, equality 129
OK value
in DialogResult enumeration 185
in MessageBox class 182
OKCancel value 182
OldIndex property, in ListChangedEventArgs class 639
OldValue property, in ScrollEventArgs class 485
OnActivated method 467
See also Activated event
OnAddingNew method 640
OnClosing method 191
example 191
OnDrawItem method, example (TabControl) 374
One value, in SelectionMode enumeration 318
OneClick value 569
OnEnter method. See Enter event
OnFormClosed event, example 467
OnFormClosing method 191
OnKeyDown method 272
example 272
example (TreeView) 535
OnKeyPress method, example 270
online help 266
OnListChanged method 640
OnLoad method 451
example 331
example (MyAlbumData) 615
OnMouseMove method 209
OnPaint method. See Paint event
OnResize method 491
Opened event, in ToolStripDropDown class 95
OpenFile method 162
example (OpenFileDialog) 26
in SaveFileDialog class 163
OpenFileDialog class 23, 25-26, 162
file filters 23
members 162
window title 23
OpenForms property 12
Opening event, in ToolStripDropDown class 95
OperatingSystem class 158
operator keyword 724
operators 710
option button 240
Orientation property
in SplitContainer class 512
in ToolStripPanel class 460
in TrackBar class 434
OSVersion property 158, 546
out keyword 724
overflow menu 453
Overflow property 80
example 453
overflow, tool strips 74
OverflowButton property 446, 453
override 133
override keyword 130, 725
OverwritePrompt property 163
Owner property, example 208
OwnerDraw property
in ListView class 543
in ToolTip class 257
OwnerDrawFixed value, in TabDrawMode enumeration 370
OwnerItem property 95
OwningColumn property 632
OwningRow property 632
P
Padding property 364
Padding structure 364
PaddingMode enumeration 283
PageBounds property 669
PageSettings class 669
PageSettings property 669
PageSetupDialog class 166, 666
Paint event 71
example 487
example (PictureBox) 492
in ToolStripItem class 86
PaintEventArgs class, members 487
Panel class 193, 397
members 200
Panel1 property 512
Panel1MinSize property 512
Panel2Collapsed property 512
panels, status bars 109
para documentation tag 733
param documentation tag 734
paramref documentation tag 734
params keyword 725
Parent property
in Control class 71
in ToolStripItem class 86
Parse event, in Binding class 654
Parse method 174, 229
for MaskedTextBox validation 237
in Enum structure 104
partial keyword 41
PasswordChar property 225, 252
PasswordDerivedBytes class, example 284
PasswordPropertyText attribute 501
Paste method 224
Path class 127
PathSeparator property, in TreeView class 515, 519
Peek method, in TextReader class 167
Pen class 372
compared with Brush 374
performance
constructors 138
exception blocks 56
image conversion 413
PerformanceCounterInstaller class 694
PerformClick method 160, 243
example 270
in IButtonBase interface 242
in RadioButton class 247
in ToolStripItem class 86
PerformStep method 409
permission documentation tag 734
Personal value, in SpecialFolder enumeration 158
PhotoAlbum class 142, 243
Photograph class 122
PictureBox class 70
assigning image 26
class hierarchy 68
display modes 101
example 364
sizing image 26
PictureBoxSizeMode enumeration 49, 101
values 101
Zoom 29
Play method
example (SoundPlayer) 441
in SoundPlayer class 432
PlayLooping method 432
PlaySync method 432
PMDesignator property 391
Point property, in MonthCalendar.HitTestInfo class 401
Point structure 372
PointF structure 372
PointToClient method 71, 208
example (PictureBox) 208
Popup event, in ToolTip class 257
popup menu. See context menu
Position property
in BindingManagerBase class 658
in BindingSource class 649
PositionChanged event, in BindingManagerBase class 658
PositionEditingControl method 632
PositionItem property 661
PositiveSign property 349
PreferredHeight property 199
PreferredSize property, in DataGridViewCell class 632
preprocessing keyboard 273
preprocessor 728
PrevMonthButton value 402
PrevMonthDate value 402
PrevNode properties 518
PrevVisibleNode property 518
Print method, in WebBrowser class 683
PrintDialog class 166, 666
PrintDocument class 666
PrintPage event 666
PrintPageEventArgs class 669
members 669
PrintPageEventHandler class 669
PrintPreviewControl class 666
PrintPreviewDialog class 666
private inheritance 138
private keyword 725
private modifier 216
ProcessCmdKey method 273
example 273
ProcessDialogChar method 273
ProcessDialogKey method 273
ProcessorCount property 158
ProductName property 12
ProductVersion property 12
example 44
ProgressBar class 409
members 409
ProgressBarStyle enumeration 408
values 408
ProgressChanged event, in BackgroundWorker control 410
project files, build actions 427
projects 37
creating 36
file extension 37
PromptChar property 234
properties 18, 157, 707
contrasted with fields 126
creating 123
different access modifiers 126
editing in Visual Studio 48
naming convention 123
Properties property, in ApplicationSettingsBase class 689
Properties Window, ordering 48
PropertyChanged event, ApplicationSettingsBase control 689
PropertyDescriptor class 658
PropertyDescriptor property, in ListChangedEventArgs class 639
PropertyInfo class 386
example 386
PropertyManager class 658
PropertyName property, in Binding class 654
PropertyType property 387
protected inheritance 138
protected internal modifier 216
protected keyword 725
protected modifier 216
ProtectedMemory class 283
ProvideProperty attribute 261
Providers property, in ApplicationSettingsBase class 689
public keyword 725
public modifier 216
Publish Wizard 698
Purple property 276
push button 240
Q
QueryContinueDrag event 674-675
Question value 182
Queue class 134
Queue<T> class 141
R
radio button 240
RadioButton class 247
members 247
RaftingContainer class 458
RaiseCellClick method 631
RaiseListChangedEvents property, in BindingSource class 649
Read method, in TextReader class 167
Read value, in CryptoStreamMode enumeration 283
ReadLine method 167
ReadOnly attribute 501
readonly keyword 725
ReadOnly property 224
in DataGridViewBand class 627
ReadOnlyChanged event 224
ReadOnlyChecked property 162
ReadOnlyCollection<T> class 140
ReadOnlyCollectionBase class 136
ReadToEnd method 167
RecentlyUsedList value 344
Rectangle structure 372
RectangleF structure 372
Red property, in Color structure 372
RedrawResize property 491
ref keyword 306, 725
ref parameter modifier 273
refactoring 303
extracting a method 629
reference types 9, 703
ReferenceEquals method 129
reflection 386, 616, 728, 738
example 386
Refresh method, in CurrencyManager class 660
RefreshItems event 661
RefreshProperties attribute 501
Region class 372
region directive 42
Region property 487, 491
RegistryKey class 12
relational operators 719
Release configuration 581
Reload method, in ApplicationSettingsBase control 689
remarks documentation tag 734
Remove method
in ArrayList class 135
in ListViewItem class 548
Remove value, in MergeAction enumeration 583
RemoveAll method 257
RemoveAllBoldedDates method 395
RemoveAt method 133
example 176
in ArrayList class 135
in BindingManagerBase class 658
in CollectionBase class 136
RemoveBoldedDate method 395
RemoveCurrent method 649
RemoveItem method, in Collection<T> class 142
RemoveSort method, in IBindingList interface 639
renaming files 46
Renderer property
in ToolStrip class 446
in ToolStripContentPanel class 460
RendererChanged event 591
RendererChanged property 446
RenderMode property, in ToolStripManager class 591
Replace value, in MergeAction enumeration 583
ReportProgress method 410
Reset method 133
in ApplicationSettingsBase control 689
in FileDialog class 25
in FolderBrowserDialog class 334
ResetBindings method, in BindingSource class 649
ResetStyle method, in ListViewSubItem class 554
resgen compiler 422
resgen.exe, strongly typed option 430
ReshowDelay property 257
Resizeable property, in DataGridViewBand class 627
resizing 27
resource files 422
ResourceManager class 423
members 423
resources 421
compiling 422
retrieving from assembly 427
RestoreDirectory property 25
example (OpenFileDialog) 163
ResumeBinding method 658
ResumeLayout method 51
RetrieveVirtualItem event 543
example 571
RetrieveVirtualItemEventArgs class 573
Retry value 185
return keyword 726
returns documentation tag 734
ReturnValue property 237
RevertMerge method 591
example 593
RGB 197
Rich Text Format. See RTF files
RichTextBox class 224
Right property 18
Right value
in AnchorStyles enumeration 29
in DockStyle enumeration 31
in HorizontalAlignment enumeration 227
RightToolStripPanelVisible property, example 463
Rijmen, Vincent 282
Rijndael class 283
creating 286
RootFolder property 334
RowCount property 359
RowEnter event 613, 629
RowHeaderMouseClick event 613
RowIndex property 632
RowLeave event 629
RowMargin property, in ToolStripPanel class 460
Rows property
in TableLayoutPanel class 200
in ToolStripPanel class 460
RowStyle class 200
RowStyles property 200
RowTemplate property 613
RTF files 224
Run method 12
example 13
RunInstaller attribute 694
RunWorkerAsync method 410
RunWorkerCompleted event 410
S
s format code, for date-times 390
Save method, in ApplicationSettingsBase control 689
SaveFileDialog class 25, 163
members 163
SaveSettings method, in ToolStripManager class 591
SByte class 718
sbyte keyword 726
sbyte type 718
scientific notation format code 349
scope 6
Scroll event 365
in DataGridView class 613
in ScrollBar class 480
in TrackBar class 434
ScrollableControl class 70, 365, 491
ScrollAlwaysVisible property, in ListBox class 309
ScrollBar class 480
members 480
ScrollBars property 225
ScrollChange property 395
ScrollControlIntoView method 365, 491
ScrollEventArgs class 485
members 485
ScrollEventType enumeration 485
scrolling, example (TabPage) 364
ScrollOrientation property 485
SDI. See single document interface
SDK Command Prompt 5
sealed keyword 12, 726
SearchForVirtualItem event 574
seconds, specifying 391
SecureString class 245
Security tab 699
Select method, in TextBoxBase class 224
SelectAll method 224
in ComboBox class 329, 332
Selected event, in TabControl class 359
Selected property
in DataGridViewBand class 627
in ListViewItem class 548
SelectedCells property 613
SelectedColumns property 613
SelectedImageIndex property
in TreeNode class 519
in TreeView class 516
SelectedImageKey property 518
in TreeView class 516
SelectedIndex property 301
in ComboBox class 332
in TabControl class 359
SelectedIndexChanged event
example (ListBox) 320
example (TabControl) 400
in ComboBox class 332
in ListBox class 309
in ListView class 543
in TabControl class 359
SelectedIndexCollection class, in ListBox class 321
SelectedIndices property
in ListBox class 309
in ListView class 563
SelectedItem property
in ComboBox class 329
in ListBox class 309
SelectedItems property
in ListBox class 309
in ListView class 543, 563
SelectedNode property 515
SelectedObjectCollection class, in ListBox class 320
SelectedPath property 334
SelectedRange class 395
SelectedRows property 613
SelectedStart property 224
SelectedTab property 359
SelectedText property 224
in ComboBox class 329, 332
SelectedValue property 301
Selecting event, example (TabControl) 366
selection, in ListBox class 318
SelectionBackColor property, in DataGridViewCellStyle class 623
SelectionChangeCommitted event
example 332
in ComboBox class 329
SelectionEnd property, in MonthCalendar class 395
SelectionForeColor property, in DataGridViewCellStyle class 623
SelectionLength property
example (ComboBox) 340
in ComboBox class 332
SelectionMode enumeration 318
members 318
SelectionMode property 318
in DataGridView class 613
in ListBox class 309
SelectionRange property 395
SelectionStart property
example (ComboBox) 340
in ComboBox class 332
in MonthCalendar class 395
SendToBack method 71, 600
set accessor 707
set keyword 123
SetColumnSpan method 200
SetCompatibleTextRenderingDefault method 40
SetDate method 395
SetEnvironmentVariable method 158
SetError method 264
example 265
SetFileDropList method 420
SetIconAlignment method 264
SetIconPadding method 263
SetItem method, in Collection<T> class 142
SetKeyName method 457
SetPixel method, example 413
SetRange method 434
SetRowSpan method 200
SetSelected method 321
example (ListBox) 324
in ListBox class 309
SetStyle method 490
SettingChanging event, ApplicationSettingsBase control 689
SettingsLoaded event, ApplicationSettingsBase control 689
SettingsProperty class 689
SettingsProvider class 689
SettingsSaving event, ApplicationSettingsBase control 689
SetToolTip method 257
setup projects 692
SetValue method, in PropertyInfo class 387
SetValues method, in DataGridViewRow class 628
shared library. See DLL
shift operators 719
Shift property 271
Shift value 271
short date format code 390
short keyword 726
short time format code 390
short type 718
Short value 393
Shortcut property 81
ShortcutKeyDisplayString property 80
ShortcutKeys property 80
example 84
ShortDatePattern property 390
ShortTimePattern property 390
Show method 188
example (ContextMenuStrip) 403
in Form class 207
in MessageBox class 182
in ToolStripDropDown class 95
ShowAlways property 257
ShowCheckBox property 385
ShowDialog method 194
example (OpenFileDialog) 24
in FileDialog class 25
ShowDropDown method 98
ShowDropDownArrow property 468
ShowGroups property 544
ShowHelp property, in FileDialog class 25
ShowInTaskBar property 194
for dialog box 195
ShowItemToolTips property 445
example (StatusStrip) 114
in StatusStrip class 108
ShowLines property 514
Shown event 194
ShowNewFolderButton property 334
ShowPlusMinus property 514
ShowReadOnly property 162
ShowRootLines property 514
ShowShortcutKeys property 80
example 90
ShowToday property 395
ShowTodayCircle property 395
ShowToolTips property 359
in MenuStrip class 75
ShowUpDown property 385
ShowWeekNumbers property 396
SignatureDescription class 283
Signing tab 699
simple data binding 637, 647
Simple value, in ComboBoxStyle enumeration 331
Single class 718
single document interface style 508
Size property, for dialog box 195
Size structure 372
SizeF structure 372
SizeMode property
example 102
example (PictureBox) 26
in TabControl class 359, 377
values 101
SizeModeChanged event, example 495
sizeof keyword 726
SizingGrip property 108
SmallChange property
in ScrollBar class 480
in TrackBar class 434
SmallIcon value 547
SmallImageList property 543
smart tags 76
soap box 595
SolidBrush class 372
example (TabControl) 374
Solution Explorer window 37
Solution Explorer, viewing source code 39
solutions 37
file extension 37
Sort method 135
example (ListView) 560
Sort property, in BindingSource class 649
sortable date and time format code 390
SortableDateTimePattern property 390
Sorted event, in DataGridView class 613
Sorted property
example (ComboBox) 337
in ComboBox class 329
in ListBox class 309
in TreeView class 514-515
SortedList class 134
Sorting property, in ListView class 543
sorting, ListView columns 557
SortMode property, in DataGridViewColumn class 620
SortOrder enumeration 557
SortProperty property, in IBindingList interface 639
SoundLocation property 432
SoundLocationChanged event 432
SoundPlayer class 432
members 432
source code, documentation 40
source files 702
Source property, in Exception class 59
SpecialFolder enumeration 158
split containers 511
split panes. See SplitContainer class
SplitContainer class 512
example 513
members 512
Splitter class 511
SplitterDistance property 512
SplitterIncrement property 512
SplitterMoved event 512
SplitterMoving event 512
SplitterPanel class 512
splitters 512
SplitterWidth property 512
Spring property, in ToolStripStatusLabel class 110
Stack class 134, 139
stack, example (generics) 139
Stack<T> class 141
stackalloc keyword 726
StackTrace property 59
standard menu items 150
Standard value 569
Start property 440
StartPosition property 194
for dialog box 195
startup project 119
StartupPath property 12
State property 370
in DataGridViewElement class 631
in DrawItemEventArgs 380
in DrawListViewItemEventArgs class 571
StateImageIndex property, in TreeNode class 518
StateImageKey property, in TreeNode class 518
StateImageList instance, in TreeView class 518
StateImageList property
in ListView class 542
in TreeView class 515-516
statement completion 54
documentation tags 55
STAThread attribute 11
static classes 40
static constructors 157, 712
static keyword 40, 726
status labels 109
StatusBar class 108-109
StatusBarPanel class 108-109
StatusStrip class 74, 108, 447
members 108
Step property 409
Stop method
in SoundPlayer class 432
in WebBrowser class 683
Stop property 440
Stream class 167
chaining streams 286
Stream property, in SoundPlayer class 432
StreamChanged event 432
StreamReader class 167
streams 167
StreamWriter class 168
example 171
Stretch overridden, in StatusStrip class 108
Stretch property
in MenuStrip class 75
in ToolStrip class 446
StretchImage value 101
String class 718
comparison 130
Equals override 130
null strings 348
string class vs. String class 128
string concatenation (+) 719
string keyword 726
string type 718
StringCollection class 134, 339
StringComparison enumeration 130
StringFormat class 375
StringFormatFlags enumeration 375
strings
comparing 558
formatting 350
strongly typed 136
StronglyTypedResourceBuilder class 430
struct keyword 9, 726
structures 714
performance considerations 733
Style property
in DataGridViewCell class 632
in ProgressBar control 409
SubItems property 548
SubString method 348
Suggest value 342
SuggestAppend value 342
summary documentation tag 734
SupportsChangeNotification property, in IBindingList interface 639
SupportsSearching property, in IBindingList interface 639
SupportsSearchingCore property 640
SuppressFinalize method 714
SuppressKeyPress property 271
SuspendBinding method
in BindingManagerBase class 658
in BindingSource class 649
SuspendLayout method 51
switch keyword 726
symmetric encryption 282
SymmetricAlgorithm class 283
example 284
SyncRoot property 133
System namespace 128
classes, for C# types 718
System.Array class 731
System.Collections namespace 558, 736
System.Collections.Generic namespace 141, 736
members 141
System.Collections.ObjectModel namespace 140, 736
System.Collections.Specialized namespace 339
System.ComponentModel namespace 423, 736
System.Configuration namespace 686
System.Configuration.Install namespace 694
System.Data namespace 638, 736
System.Delegate class 717
System.Drawing namespace 372, 736
types 372
System.Drawing.Design namespace 737
System.Drawing.Printing namespace 737
System.Enum class 716
System.Enum structure. See Enum structure
System.EventArgs class. See EventArgs class
System.Exception class 56, 729
System.Globalization namespace 737
System.IO namespace 127, 167, 282, 737
System.IO.Compression namespace 167
System.Net namespace 737
System.Net.Sockets namespace 167, 737
System.Object class. See object class
System.Reflection namespace 386, 616, 738
System.Resources namespace 423, 738
System.Security namespace 245, 739
System.Security.Cryptography namespace 283, 739
members 283
System.Text namespace 285
System.Threading namespace 739
System.ValueType class 703
System.Web namespace 740
System.Web.Services namespace 740
System.Web.UI namespace 740
System.Windows.Forms namespace 740
See also Windows Forms namespace
System.Windows.Forms.Design namespace 498, 504, 740
System.Xml 428, 740
SystemBrushes class, example 380
SystemColors class 277, 314, 372
SystemInformation class 490
T
t format code, for date-times 390
tab strip 359
TabAlignment enumeration, example 375
tabbed document interface 510
TabControl class 359
alignment 369
appearance 369
custom tabs 370
example 361
ImageList property 375
images 362
managing multiple pages 396
members 359
selection 366
tab size 377
tool tips 362
TabCount property 359
TabDrawMode enumeration 370
TabIndex property 47, 71
example 51
TableBorderStyleCellBorderStyle enumeration 200
TableLayoutPanel class 193, 200
assigning row style 201
example 201, 342
members 200
properties added for controls 201
TableLayoutPanelGrowStyle enumeration 200
TabPage class 362
example 364
ImageIndex property 375
members 362
scrolling 364
tool tips 362
TabPages property, example 374
TabStop property 71, 490
in GroupBox class 248
Tag property
example (ToolStripMenuItem) 101, 604
example (TreeNode) 522
in ColumnHeader class 552
in DataGridViewCellStyle class 623
in ErrorProvider class 264
in ImageList class 454
in ListViewItem class 548
in ListViewSubItem class 554
in SoundPlayer class 432
TagPages property 359
TargetSite property 59
Task List window 157
TDI. See tabbed document interface
Text field, in DataFormats class 675
Text property
example (ComboBox) 339
in ButtonBase class 242
in ColumnHeader class 552
in Control class 71
in GroupBox class 248
in ListViewItem class 548
in ListViewSubItem class 554
in MaskedTextBox class 234
in TabPage class 362
in TextBoxBase class 224
in ToolStripItem class 86
in ToolStripStatusLabel class 113
in TreeNode class 519
mnemonic (in Label class) 199
TextAlign property
difference in buttons and text boxes 241
in ButtonBase class 242
in ColumnHeader class 552
in Label class 199
in TextBox control 225
TextAlignChanged event 199, 225
TextBox class
auto completion 341
example (auto completion) 343
members 225
mulitline 226
numeric values 441
passwords 252
simple data binding 655
TextChanged event 232
TextBoxBase class 224-225
members 224
wrapping text 225
TextChanged event 232
example 488
example (ComboBox) 340
TextDirection property, in ToolStrip class 446
TextImageRelation enumeration 242
TextImageRelation property, in ButtonBase class 242
TextLength property 224
TextMaskFormat property 234
TextReader class 167
members 167
TextureBrush class 372
TextWriter class 167-168
members 168
this keyword 8, 157, 726
Thread class 739
ThreadException event 12
ThreadExit event 12
threading 739
ThreeState property 251
throw (exception) 56
throw keyword 727
thumbnail images 376
Tick property 440
TickCount property 158
TickFrequency property 434
ticks, in TrackBar class 435
TickStyle property 434
Tile value 547, 557
TileHorizontal value 603
TileVertical value 603
Time property, in MonthCalendar.HitTestInfo class 401
Time value 393
Timer class 440
members 440
timers 439
times. See dates and times
TimeSeparator property 391
title bar buttons, in MDI application 577
Title property
example (OpenFileDialog) 23
in FileDialog class 25
TitleBackground value 402
TitleMonth value 402
TitleYear value 402
TodayDate property 395
TodayLink value 402
TODO comments 157
Toggle method 519
ToLower method 131
tool strip classes 447
tool strip item classes 448
tool strips
features 452
merging 590
ToolBar class 443
contrasted with ToolStrip 445
ToolBarButton class 443
Toolbox window 47
ToolboxBitmap attribute 498
ToolboxItem attribute 498
ToolboxItem class 498
ToolboxItemFilter attribute 498
Tools menu, standard items 150
ToolStrip class 73, 446-447
contrasted with ToolBar 445
Dock property 447
item alignment 452
MDI related members 582
members 446
merge limitations 593
merging 452
overflow 452
text/image display 452
ToolStripButton class 84, 450
members 450
ToolStripComboBox class 469
auto completion 341
ToolStripContainer class 447, 459
members 459
ToolStripContentPanel class 459
ToolStripControlHost class 84, 448, 471
members 471
ToolStripDropDown class 74, 95, 98
members 95
ToolStripDropDownButton class 84, 448, 467
example 114
members 468
ToolStripDropDownCloseReason enumeration 95
ToolStripDropDownDirection enumeration 98
ToolStripDropDownItem class 74, 83-84, 98, 467
members 98
ToolStripDropDownMenu class 74, 95
ToolStripItem class 73, 84, 86, 446, 448
alignment 452
click handling 160
features 452
item reordering 453
MDI related members 582
members 86
merging 452
overflow 452
reordering 453
text/image display 452
tool tips 257, 453
ToolStripItemClickedEventArgs class 102-103
ToolStripItemClickedEventHandler class 102
ToolStripItemDisplayStyle enumeration 86
ToolStripItemOverflow enumeration 80, 453
members 453
ToolStripLabel class 85, 110, 448
hyperlinks 110
members 110
ToolStripLayoutStyle enumeration 446
ToolStripManager class 447, 591
example 593
members 591
ToolStripMenuItem class 73-74, 80, 448
MDI related members 582
members 80
merging items 583
ToolStripOverflow class 74, 447, 453
ToolStripOverflowButton class 84, 448, 453
ToolStripPanel class 459, 591
members 460
ToolStripPanelRow class 460
ToolStripProgressBar class 469
ToolStripRenderer class 446-447, 473
ToolStripSeparator class 85, 448
ToolStripSplitButton class 84, 448, 470
members 470
ToolStripStatusLabel class 85, 110, 448
borders 112
members 110
springs 110
ToolStripTextBox class 469
auto completion 341
ToolStripTextDirection enumeration 446
ToolTip class 257
assigning 260
custom drawing 261
example 260
members 257
ToolTipText property 257
example (ToolStripStatusLabel) 114
in DataGridViewCell class 632
in DataGridViewColumn class 620
in ListViewItem class 548
in TabPage class 362
in ToolStripItem class 86
in TreeNode class 519
Top property 18
Top value
in AnchorStyles enumeration 29
in DockStyle enumeration 31
TopIndex property, in ListBox class 309
TopNode property 515
TopRight value 227
ToString method
example (PictureBoxSizeMode) 106
in Exception class 59
in IFormattable interface 346
in Object class 129
overriding 131
TRACE symbol 581
TrackBar class 434
members 434
value 436
transactions 617
transparency 420
in bitmaps 438
TransparentColor property, in ImageList class 454
tree nodes 510, 514
customizing 525
editing 533
expanding dynamically 531
selecting 533
tree views, customizing 523
TreeNode class 515
constructor 519
creating 520
example 522
members 519
navigation properties 518
TreeNode Editor 520
TreeView class
checkbox images 516
drag-and-drop 678
image icons 514
image lists 518
label edits 534
members 515
node layout 514
sorting 514
state images 518
TreeView property 519
TreeViewAction, enumeration 523
TreeViewCancelEventArgs class 522
members 522
TreeViewEventArgs class 523
members 523
TreeViewNodeSorter property 514
TrimToSize method 135
true keyword 727
true value 130
try keyword 727, 729
example 171
try-catch blocks 57
TwoClick value 569
Type class 104, 386
example 386
getting properties 386
type conversion 711
type declarations 702
Type property, in ScrollEventArgs class 485
TypeConverter attribute 501
TypeConverter class 501, 504
TypeConverterAttribute class 504
typeof keyword 104, 386, 727
typeparam documentation tag 734
typeparamref documentation tag 734
types 7
type-safe 23
TypeValidationCompleted event 234, 237
TypeValidationEventArgs class 237
members 237
U
u suffix 727
UI guidelines 150
uint keyword 727
uint type 718
UInt16 class 718
UInt32 class 718
UInt64 class 718
UITypeEditor class 501, 504
ulong keyword 727
ulong type 718
unary operators 710
UnauthorizedAccessException class 172
unboxing 733
unchecked keyword 727
Unchecked value 251
Undo method 224
UNDONE comments 157
UnhandledException event 184
unsafe code 413
operators 719
unsafe keyword 727
UpdateBoldedDates method, example 400
UpDownBase class 441
Uri class 685
Url property, in WebBrowser class 683
UseFading property 257
UseItemStyleForSubItems property 548, 554
UseMnemonic property 199
user controls, creating 396
UserAppDataRegistry property 12
UserControl class 397, 491
example 397
members 397
UserName property 158
UserScopedSettingAttribute class 689
UseSystemPasswordChar property
example 252
in TextBox control 225
ushort keyword 727
ushort type 718
using keyword 727
and Dispose method 189
as directive 15
as statement 189
using statement, example (PhotoEditDialog) 230
UTF8 property, in Encoding class 286
V
Validated event 265
in ToolStripControlHost class 471
ValidateText method 234
Validating event 265
ValidatingType property 237
in MaskedTextBox class 234
in TypeValidationEventArgs class 237
value documentation tag 734
value keyword 123
Value property
example (DateTimePicker) 389
example (TrackBar) 436
in DataGridViewCell class 632
in DateTimePicker class 385
in ProgressBar class 409
in ScrollBar class 480
in TrackBar class 434
value types 9, 703
ValueChanged event
in DateTimePicker class 385
in ScrollBar class 480
in TrackBar class 434
ValueMember property 301
in DataGridViewComboBoxColumn class 624
ValueType class 703
ValueType property
in DataGridViewCell class 632
in DataGridViewColumn class 620
Version class 45
version number 6
Version property, in WebBrowser class 683
versions
conventions 44
generating build number 44
generating revision number 44
retrieving 12
vertical bar 29
Vertical property, in Padding structure 365
VerticalScroll property 365
View enumeration 547
values 547
View property 543
example (ListView) 546
virtual items 571
events 574
virtual keyword 728
VirtualItemsSelectionRangeChanged event 574
VirtualListSize property, example 573
VirtualMode property 543
example 571
in DataGridView class 613
Visible property
example (ToolStrip) 594
in Control class 71
in Form class 211
in ToolStripItem class 86
VisibleCount property 515
VisitedLinkColor property 110
in LinkLabel class 292
Visual Studio 33
build actions 427
building documentation 40
ClickOnce deployment 696
configurations 581
creating a class library 118
data binding 656
guide lines 249
projects 119
projects, compiling 37
Properties window 48
renaming files 46
setup & deployment 692
statement completion 54
task lists 157
window location, altering 48
VisualStylesEnabled property 591
void keyword 728
volatile keyword 728
VS .NET. See Visual Studio
VScrollBar class 480
example 494
VScrollProperties class 365
W
Warning value 182
WC_TABCONTROL 369
WebBrowser class 683
members 683
WebBrowserBase class 682
weekdays, specifying 391
WeekNumbers value 402
while keyword 728
Width property 18
example (Image) 113
in ColumnHeader class 552
in DataGridViewColumn class 620
in Form class 18
Win32 menus 73
Window menu, example 604
Windows Forms Design namespace 498
Windows Forms Designer 38, 42, 51
adding controls 46
file changes 47
menu, adding 76
Windows Forms forums 179
Windows Forms namespace 741
class hierarchy 741
common dialogs 747
components 746
controls 748
enumerations 753
event data 755
interfaces 756
marshal by ref objects 745
objects 743
types 741
Windows Forms, controls 68
WindowState property 194, 600
WM_KEYDOWN message 273
WM_SYSKEYDOWN message 273
WordWrap property 224-225
WorkerReportsProgress property 410
WorkerSupportsCancellation property 410
WorkingSet property 158
WrapMode property, in DataGridViewCellStyle class 623
Write method, in TextWriter class 168
Write value, in CryptoStreamMode enumeration 283
WriteLine method 168
X
x format code, for numbers 349
X property
in DragEventArgs class 677
in MouseEventArgs class 275
XML 740
XmlReader class, creating 428
Y
y format code, for date-times 390
Y property
in DragEventArgs class 677
in MouseEventArgs class 275
year month format code 390
YearMonthPattern property 390
years, specifying 391
Yellow property 276
Yes value 185
YesNo value 182
YesNoCancel value 182
yield keyword 728
Z
Zoom value 101
z-order 19
changing for a control 71
example 31
modifying 600