JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Index

C

Calendar class, 774–775, 793–796. See also WebControl class.
Calendars coding example, 795–796
CellPadding property, 793
CellSpacing property, 793
creating, 795–796
DayHeaderStyle property, 793
DayNameFormat property, 794
DayRender event, 794
DayStyle property, 794
FirstDayOfWeek property, 794
NextMonthText property, 794
NextPrevStyle property, 794
OtherMonthDayStyle property, 794
PrevMonthText property, 794
public events, 794
public properties, 774–775, 793–794
SelectedDate property, 794, 795
SelectedDates property, 794
SelectedDayStyle property, 794
SelectionChanged event, 794, 795
SelectionMode property, 774, 794
SelectMonthText property, 794
SelectorStyle property, 794
SelectWeekText property, 794
ShowDayHeader property, 794
ShowGridLines property, 794
ShowNextPrevMonth property, 794
ShowTitle property, 794
TitleFormat property, 794
TitleStyle property, 794
TodayDayStyle property, 794
TodaysDate property, 794
VisibleDate property, 794
VisibleMonthChanged event, 794
WeekendDayStyle property, 794
Calendar control, Web server controls, 608
CalendarDimensions property, MonthCalendar class, 366
CalendarFont property, DateTimePicker class, 362
CalendarForeColor property, DateTimePicker class, 362
CalendarMonthBackground property, DateTimePicker class, 362
Calendars coding example, 795–796. See also Calendar class.
WebForm1.aspx, 795
WebForm1.aspx.vb, 796
CalendarTitleBackColor property, DateTimePicker class, 362
CalendarTitleForeColor property, DateTimePicker class, 362
CalendarTrailingForeColor property, DateTimePicker class, 362
Call statements, Sub procedures, 111
"Cancel Counting" button, Threading coding example, 1028
Cancel method
OleDbCommand class, 942
SqlCommand class, 943
CancelButton property
Button class, 251
dialog boxes, 193
Form class, 157
CancelCommand event, DataList class, 1003
CancelCommand method, DataGrid class, 999
CancelCurrentEdit method, Data Form Wizard, 900
CancelEdit method, DataRow class, 953
CanDuplex property, PrintSettings class, 416
CanFocus property
Control class, 210
Form class, 157
CanPaste method, RichTextBox class, 230
CanPauseAndContinue property, ServiceBase class, 1080
CanRead property, FileStream class, 590
CanRedo property, RichTextBox class, 229
CanSeek property, FileStream class, 590
CanSelect property, Control class, 210
CanShutdown property, ServiceBase class, 1080
CanStop property, ServiceBase class, 1080
CanUndo property
RichTextBox class, 229
TextBox class, 219
CanWrite property, FileStream class, 590
Caps Lock key, SendKeys key codes, 203
Caption property. See also Text property.
DataColumn class, 954
CaptionBackColor property, DataGrid class, 914
CaptionFont property, DataGrid class, 914
CaptionForeColor property, DataGrid class, 914
CaptionText property, DataGrid class, 914
CaptionVisible property, DataGrid class, 914
Capture property
Control class, 210
Form class, 157
Case statements, Select Case statements and, 96
CaseSensitive property
DataSet class, 947
DataTable class, 952
Catch blocks, 148–149. See also exception handling.
Exception class and, 148–149
exception filtering, 148–149
getType method, 149
When keyword, 149
Catch statements
multiple, 150
structured exception handling, 120, 145, 146–147
CausesValidation property
Button class (WebControl class), 674
Control class, 210
data validation, 924
HtmlButton class, 823
HtmlInputButton class, 824
HtmlInputImage class, 825
ImageButton class (WebControl class), 746
LinkButton class (WebControl class), 763
CellPadding property
BaseDataList class, 997
Calendar class, 793
CheckBoxList class (WebControl class), 711
HtmlTable class, 829
RadioButtonList class (WebControl class), 720
Table class (WebControl class), 723
Cells property
HtmlTableRow class, 830
TableRow class (WebControl class), 724
CellSpacing property
BaseDataList class, 997
Calendar class, 793
CheckBoxList class (WebControl class), 711
HtmlTable class, 829
RadioButtonList class (WebControl class), 720
Table class (WebControl class), 723
ChangeDatabase method
OleDbConnection class, 939
SqlConnection class, 940
Char data type, described, 78
characters, converting between character codes and, 88
CheckAlign property, CheckBox class, 273
CheckBox class, 252, 273–276. See also Control class.
Appearance property, 252, 273
AppearanceChanged event, 273
Checked property, 252, 273, 274, 275
CheckedChanged event, 273, 274
CheckState property, 252, 273
CheckStateChanged event, 273
creating, 274
FlatStyle property, 252, 273
getting states, 274
public events, 273
public properties, 273
setting states, 274–275
ThreeState property, 252, 273, 275–276
toggle buttons, 279
CheckBox class (WebControl class), 698–699, 705–709. See also System.Web.UI.Control class; WebControl class.
AutoPostBack property, 698, 705
Checkboxes coding example, 706–709
Checked property, 705
CheckedChanged event, 705
DataBind method, 705
Dispose method, 705
Load event, 705
public events, 705
public methods, 705
public properties, 705
RadioButton class, 699–700, 714–719
Text property, 705
TextAlign property, 705
Unload event, 705
CheckBox control, Web server controls, 608
checkboxes
binding controls to databases, 910
HtmlInputCheckbox class, 809, 827–828
RadioButton class (WebControl class), 699–700, 714–719
Add method, 713
AutoPostBack property, 709
Checked property, 708
CheckedChanged event, 708
Items property, 712
Selected property, 713
SelectedIndexChanged event, 713
Text property, 712
Value property, 712
WebForm1.aspx, 706–707
WebForm1.aspx.vb, 707–708
CheckBoxes property
ListView class, 432, 451, 458–459
TreeView class, 431, 443, 447–448
CheckBoxList class (WebControl class), 699, 711–713. See also ListControl class; System.Web.UI.Control class; WebControl class.
CellPadding property, 711
CellSpacing property, 711
Checkboxes coding example, 712–713
DataBind method, 712
DataBinding event, 712
Dispose method, 712
Load event, 712
public events, 712
public methods, 712
public properties, 711
RepeatColumns property, 711
RepeatDirection property, 711
RepeatLayout property, 711
TextAlign property, 711
Unload event, 712
CheckBoxList control, Web server controls, 608
checked list boxes, binding controls to databases, 912
Checked property
CheckBox class, 252, 273, 274, 275
CheckBox class (WebControl class), 705
Checkboxes coding example, 708
DateTimePicker class, 362
HtmlInputCheckbox class, 828
HtmlInputRadioButton class, 828
ListViewItem class, 453
MenuItem class, 391, 396
RadioButton class, 253, 277, 278
RadioButtons coding example, 718
TreeNode class, 445
TreeView class, 448
CheckedChanged event
CheckBox class, 273, 274
CheckBox class (WebControl class), 705
Checkboxes coding example, 708
RadioButton class, 277
RadioButton class (WebControl class), 714
CheckedChanged event handler, RadioButtons coding example, 718
CheckedIndices property
CheckedListBox class, 291, 308, 311
ListView class, 451
CheckedItems property
CheckedListBox class, 291, 308, 311
ListView class, 451
CheckedListBox class, 291–292, 307–314. See also Control class; ListBox class.
BeginUpdate method, 309
CheckedIndices property, 291, 308, 311
CheckedItems property, 291, 308, 311
CheckOnClick property, 291, 308
CheckState enumeration, 292, 311–312, 313
ClearSelected method, 309
ColumnWidth property, 308
DisplayMember property, 308
EndUpdate method, 309
FindString method, 309
FindStringExact method, 309
GetItemChecked method, 291, 292, 309, 310–311
GetItemCheckState method, 292, 309, 311
GetItemHeight method, 309
GetItemText method, 309
GetSelected method, 309
HorizontalScrollbar property, 308
IndexFromPoint method, 309
IntegralHeight property, 308
ItemCheck event, 291–292, 309, 313
ItemCheckEventArgs object, 313
ItemHeight property, 308
Items property, 308
Items.Add method, 309–310
MultiColumn property, 308
public events, 309
public methods, 309
public properties, 308
ScrollAlwaysVisible property, 308
SelectedIndex property, 308
SelectedIndexChanged event, 309
SelectedIndices property, 308
SelectedItem property, 308
SelectedItems property, 308
SelectedMode property, 308
SetItemChecked method, 292, 309, 312–313
SetItemCheckState method, 292, 309, 312–313
SetSelected method, 309
Sorted property, 308
Text property, 308
ThreeDCheckBoxes property, 308
TopIndex property, 308
CheckFileExists property
OpenFileDialog class, 406
SaveFileDialog class, 408
checking data types, 81–82. See also data types.
functions, 82
CheckOnClick property, CheckedListBox class, 291, 308
CheckPathExists property, OpenFileDialog class, 406
CheckState enumeration, CheckedListBox class, 292, 311–312, 313
CheckState property, CheckBox class, 252, 273
CheckStateChanged event, CheckBox class, 273
child windows, MDI (Multiple Document Interface) forms, 189–190
ChildColumns property, DataRelation class, 954
ChildKeyConstraint property, DataRelation class, 954
ChildRelations property, DataTable class, 952
ChildTable property, DataRelation class, 954
Choose function, 97–98
Chr function, converting between characters and character codes, 88
class libraries, 516–518. See also OOP (Object-Oriented Programming).
ClassLibraries coding example, 516–517
class members
object members comparison, 484
OOP (Object-Oriented Programming), 481–483
types of, 156
class (shared) data members, 504–505
class (shared) events, 513. See also OOP (Object-Oriented Programming).
Shared keyword, 513
class (shared) methods, 507–508. See also OOP (Object-Oriented Programming).
Graphics class, 577
Shared keyword, 507
class (shared) properties, 509. See also OOP (Object-Oriented Programming).
Shared keyword, 509
Class statements, creating classes, 492–493
class (static/shared) properties, PrintSettings class, 416
Class View window, IDE, 46
classes
abstract. See MustInherit keyword.
base, 522–523
creating, 492–493
defined, 66
derived, 522
OOP (Object-Oriented Programming), 481
ClassLibraries coding example, 516–517
Add Reference dialog box, 517
Display method, 516
Clear method
ControlBindingsCollection class, 906
DataSet class, 947
DataTable class, 952
EventLog class, 1082
Graphics class, 578
ListBox class, 307
ListView class, 452
RichTextBox class, 230
TextBox class, 220
TreeView class, 449
ClearErrors method, DataRow class, 954
ClearSelected method
CheckedListBox class, 309
ListBox class, 296
ClearUndo method
RichTextBox class, 230
TextBox class, 220
Click event
Button class, 259–260
Button class (WebControl class), 663, 674
Buttons coding example, 677
ComboBox class, 318
Control class, 212
event handling, 165
Form class, 160
ImageButton class (WebControl class), 736–737,746
Label class, 241
LinkButton class (WebControl class), 763
LinkButtons coding example, 763
ListBox class, 300–301
MenuItem class, 380, 381, 392, 399–400
NotifyIcon class, 369, 370–371
resetting focus after, 264–265
RichTextBox class, public events, 231
TextBox class, 221
Click event handler
creating Web applications, 623
ImageButtons coding example, 748
client area, forms, 155
client event handling, 639–642. See also Web forms.
ClientEvents coding example, 640–642
onclick event, 640–642
client and server HTML controls, 802–803
ClientID property, System.Web.UI.Control class, 660
ClientRectangle property, Form class, 157
clients, saving Web application states, 611–612
ClientSize property
Form class, 157
PictureBox class, 294
ClientTarget property, Page class, 643
ClientValidationFunction property, CustomValidator class, 773, 790, 791
Clip property, Graphics class, 577
Clipboard object
GetDataObject class method, 225
SetDataObject class method, 225
TextBox class and, 225–226
Clone method, Pen class, 579
CloneMenu method, MenuItem class, 392
Close method
BinaryReader class, 599
BinaryWriter class, 597
EventLog class, 1082
FileStream class, 590
Form class, 159
OleDbConnection class, 939
OleDbDataReader class, 949
SqlConnection class, 940
SqlDataReader class, 950
StreamReader & StreamWriter classes, 570
StreamReader class, 596
StreamWriter class, 594
Closed event, Form class, 160
CloseUp event, DateTimePicker class, 362
Closing event, Form class, 160
CLR (Common Language Runtime), 25. See also .NET framework.
code designers, IDE, 37–40
coding databases, 927–972. See also ADO.NET; databases.
command objects, 957
data adapters, 958–959
data columns, 960–961
data connection objects, 957
data tables, 960
DataAdapter class, 943–944
DataColumn class, 937, 954–955
DataReader coding example, 968–970
DataRelation class, 938, 955–956
DataRelation objects, 971–972
DataRow class, 937, 953–954
DataRow objects, 961–963
DataSet class, 934–935, 947–948
datasets, 956–957
DataSetXML coding example, 966–968
DataTable class, 935–936, 951–953
DbDataAdapter class, 944
looping over all tables in dataset, 966
OleDbCommand class, 931–932, 941–942
OleDbConnection class, 929–931, 939–940
OleDbDataAdapter class, 932–933, 945
OleDbDataReader class, 935, 948–949
ReadData coding example, 963–966
SqlCommand class, 932, 942–943
SqlConnection class, 931, 940–941
SqlDataAdapter class, 934, 946
SqlDataReader class, 935, 949–951
coding tips, Visual Basic .NET, 53–55
Collapse method
DataGrid class, 915
TreeNode class, 445
TreeView class, 432
CollapseAll method, TreeView class, 432, 444
Collate property, PrintSettings class, 416
Collect method, triggering garbage collection, 515
Collection Editor
ListItem class, 720, 721
ListViewItem class, 453, 454
TableRow class (WebControl class), 725
TabPage class, 474
ToolBarButton class, 461, 462, 464
CollectionChanged event,
ControlBindingsCollection class, 906
Color property
ColorDialog class, 385, 412, 413
FontDialog class, 410, 411, 412
Pen class, 579
Color structure, 580. See also Graphics class.
FromArgb method, 580
ColorDepth property, ImageList class, 437
ColorDialog class, 385–386, 412–414. See also Control class; dialog boxes.
AllowFullOpen property, 386, 413
AnyColor property, 413
BackColor property, 413
Color property, 385, 412, 413
CustomColor property, 413
FullOpen property, 413
HelpRequest event, 413
public events, 413
public methods, 413
public properties, 413
Reset method, 413
ShowDialog method, 413
ShowHelp property, 413
SolidColorOnly property, 386, 413
colors
Button class, 257–258
hyperlink, 646
Pen and Brush class, 587–588
RichTextBox class, 235–236
Web form text, 647
Web forms, 646
Cols property, HtmlTextArea class, 821
ColSpan property, HtmlTableCell class, 831
ColumnChanged event, DataTable class, 953
ColumnChanging event, DataTable class, 953
ColumnClick event, ListView class, 452, 458
ColumnHeadersVisible property, DataGrid class, 914
ColumnMapping property, DataColumn class, 955
ColumnName property, DataColumn class, 955
Columns collection, ListView class, 455
Columns property
DataGrid class, 998
DataTable class, 952
ListView class, 451
PrintPreviewControl class, 422
TextBox class (WebControl class), 663, 679, 685
ColumnSpan property, TableCell class (WebControl class), 724
ColumnWidth property
CheckedListBox class, 308
ListBox class, 295
COM components, new features of Visual Basic .NET, 23
combination operators, 91. See also operators.
ComboBox class, 292–293, 314–325. See also Control class.
adding items, 316–317
AddRange method, 324–325
BeginUpdate method, 293, 315
binding controls to databases, 911
clearing, 321
Click event, 318
ComboBoxStyle enumeration, 316
counting items, 321–322
DisplayMember property, 314, 323
DoubleClick event, 319
DropDownStyle property, 293, 314, 316, 320
DropDownWidth property, 314
DroppedDown property, 314
EndUpdate method, 293, 315
FindString method, 293, 315
FindStringExact method, 293, 315
Focused property, 314
GetData method, 323, 324
GetItemText method, 315
IntegralHeight property, 314
ItemHeight property, 315
Items property, 293, 315, 316
Items.Add method, 293, 317, 323
Items.AddRange method, 293, 317
Items.Clear method, 293, 321
Items.Count property, 292, 322
Items.Insert method, 293, 317
Items.Remove method, 293, 319
Items.RemoveAt method, 319
MaxDropDownItems property, 315
MaxLength property, 315
public events, 315
public methods, 315
public properties, 314–315
removing items, 319
Select method, 315
SelectAll method, 315
SelectedIndex property, 292, 293, 315, 319–320
SelectedIndexChanged event, 315, 318
SelectedItem property, 292, 293, 315, 319–320, 324
SelectedText property, 315
SelectionLength property, 315
SelectionStart property, 315
Sorted property, 315, 320–321
storing objects in, 322–325
Text property, 292, 293, 316, 319
TextChanged event, 317
ToolBar class, 464–465
ToString method, 322–323
ComboBoxesData coding example, 487–490. See also OOP (Object-Oriented Programming).
AddRange method, 488–489
DataItem class, 488
GetData method, 489
SelectedItem property, 489
ToString method, 488
command buttons, Button class (WebControl class), 678–679
Command event
Button class (WebControl class), 663, 674
ImageButton class (WebControl class), 746
LinkButton class (WebControl class), 763
Command event handler, ImageButton class (WebControl class), 737
command objects
ADO.NET, 853
coding databases, 957
Command window, IDE, 52–53
CommandArgument property
Button class (WebControl class), 662, 674, 678
ImageButton class (WebControl class), 737,746
LinkButton class (WebControl class), 763
CommandName property
Button class (WebControl class), 662, 678
ImageButton class (WebControl class), 737,746
LinkButton class (WebControl class), 763
CommandText property
OleDbCommand class, 941
SqlCommand class, 942
CommandTimeout property
OleDbCommand class, 941
SqlCommand class, 942
CommandType property
OleDbCommand class, 941
SqlCommand class, 942
comments, 93–94
' (apostrophe), 93–94
procedures and, 126–127
REM keyword, 94
Commit method, ServiceInstaller class, 1084
Committed event
ServiceInstaller class, 1084
ServiceProcessInstaller class, 1083
Committing event
ServiceInstaller class, 1084
ServiceProcessInstaller class, 1083
CommitTransaction event, TemplateControl class, 1040
Common Language Runtime (CLR), 25. See also .NET framework.
CompareTo method, DateTime class, 338
CompareValidator class, 769, 770–772, 784–785. See also validation controls.
ControlToCompare property, 770, 771, 785
ControlToValidate property, 770
Operator property, 785
public properties, 785
Type property, 772
ValueToCompare property, 771, 785
comparing objects, Is keyword, 502–503
Comparison operators, 89–90. See also operators.
DataMember property, 889, 890
DataSource property, 889, 890
DataTextFormatString property, 977
DisplayMember property, 889, 890, 909
properties, 889, 976–977
ValueMember property, 889, 890
component tray
IDE (Integrated Development Environment), 49
Server Explorer, 842, 843
CompoundArray property, Pen class, 579
Compute method, DataTable class, 952
Concat method, String class, 86
Connection property
OleDbCommand class, 931, 941
OleDbConnection class, 930
SqlCommand class, 942
connections
ADO.NET, 836
Data Adapter Configuration Wizard, 845, 846
ConnectionString property
OleDbConnection class, 930, 939
SqlConnection class, 940
ConnectionTimeout property
OleDbConnection class, 939
SqlConnection class, 940
console applications
creating, 13–16
new features of Visual Basic .NET, 17
Const statements, 70–72
attrlist attribute list, 70, 71
example, 71–72
Friend keyword, 70
initexpr keyword, 71
name keyword, 71
Private keyword, 71
Protected Friend keyword, 71
Protected keyword, 70
Public keyword, 70
Shadows keyword, 71
type keyword, 71
constants
declaring, 70–72
MsgBox function, 176
constraint objects, ADO.NET, 854
Constraints property, DataTable class, 952
defined, 66
inheriting, 547–548
New Sub procedure, 502
ContainerControl class, 1035
ActiveControl property, 1035
ParentForm property, 1035
Validate method, 1035
ContainerControl property, ErrorProvider class, 923
Contains method
BindingContext class, 917
Control class, 211
Form class, 159
ContainsFocus property
Control class, 210
Form class, 157
ContentType property, Web forms, 648
Context property
ServiceProcessInstaller class, 1082
WebService class, 1089
ContextMenu class, 381–382, 403–405. See also Control class; Menu class.
GetContextMenu method, 404
GetMainMenu method, 404
Hide method, 382
IsParent property, 403
MdiListItem property, 403
MenuItems property, 382, 403
MergeMenu method, 404
Popup event, 404
public events, 404
public methods, 404
public properties, 403
Show method, 382, 404
SourceControl property, 403
ContextMenu property
Control class, 210
Form class, 157
NotifyIcon class, 369
ContextMenuChanged event, Control class, 212
control arrays, Button class and, 260–263
Control class, 207–477. See also controls; forms.
Add method, 196–197
Anchor property, 196
Button class, 251–252, 256–272
CheckBox class, 252, 273–276
CheckedListBox class, 291–292, 307–314
ColorDialog class, 385–386, 412–414
ComboBox class, 292–293, 314–325
ContextMenu class, 381–382, 403–405
Cursor property, 218–219
DateTime class, 336–338
DateTimePicker class, 336–338, 361–365
dialog boxes, 191–194, 382–389, 405–425
Dock property, 196
FontDialog class, 384–385, 410–412
GroupBox class, 254–255, 283–286
Hide method, 175
ImageList class, 429–430, 437–442
ImeMode property, 164
Label class, 216–217, 239–247
ListBox class, 289–291, 295–307
ListView class, 432–433, 451–459
ListViewItem class, 453
MainMenu class, 379, 390
MonthCalendar class, 338–339, 365–368
NotifyIcon class, 339, 368–371
OpenFileDialog class, 383–384, 405–408
overview, 209–213
PageSetupDialog class, 388–389, 423–425
Panel class, 253–254, 279–282
pickers, 336–339, 361–368
PictureBox class, 293–294, 326–329
PrintDialog class, 386–387, 414–420
PrintDocument class, 386, 415
PrintPreviewControl class, 388, 422–423
PrintPreviewDialog class, 387, 420–421
PrintSettings class, 416–417
ProgressBar class, 435, 471–472
public events, 212–213
public methods, 211–212
public properties, 210–211
RadioButton class, 253, 276–279
Remove method, 196–197
RichTextBox class, 215–216, 228–238
SaveFileDialog class, 384, 408–410
scroll bars, 333–334, 342–356
Show method, 175
Splitter class, 334, 356–358
StatusBar class, 434–435, 466–470
StatusBarPanel class, 466–467, 468–470
System.Windows.Forms namespace, 209
TabControl class, 435–436, 472–477
TextBox class, 214–215, 219–238
Timer class, 340–341, 372–375
ToolBar class, 433–434, 459–465
ToolTip class, 339–340, 371–372
TrackBar class, 334–335, 358–361
TreeNode class, 444–445
TreeView class, 430–432, 442–450
Web server controls. See System.Web.UI.Control class.
Control property
Binding class, 907
ControlBindingsCollection class, 906
control tab order, forms, 171
ControlAdded event
Control class, 212
Form class, 160
ControlArray sample coding, Button class, 260–264
ControlBindingsCollection class, 905–906. See also binding controls to databases.
Add method, 906
Clear method, 906
CollectionChanged event, 906
Control property, 906
Count property, 906
DataBindings property, 905
Item property, 906
public events, 906
public methods, 906
public properties, 906
Remove method, 906
RemoveAt method, 906
ControlBox property
dialog boxes, 191
Form class, 157, 170
PrintPreviewDialog class, 420
ControlRemoved event
Control class, 212
Form class, 160
controls. See also Control class; forms.
adding and removing at runtime, 196–197
adding to forms, 162–164
binding to databases, 885–926
changes in from Visual Basic 6.0, 163–164
client and server HTML, 802–803
creating Web applications, 10–12, 620
creating Windows applications, 5
defined, 5
docking and anchoring on MDI forms, 188
HTML client, 609
HTML server, 608–609
moving, 172
showing/hiding, 174–175
sizing, 172
validation, 610, 767–774, 778–793
Web forms, 607–610
Web server, 607–608, 657–733
Controls coding example, Web server controls, 666–669
Controls collection
AddControls coding example, 692
Button class, 261
GroupBox class, 284–286
LinkLabel class, 245
Panel class, 281–282
TabControl class, 477
Controls property
Control class, 210
Form class, 157
System.Web.UI.Control class, 660
ControlStyle property, WebControl class, 661
ControlToCompare property, CompareValidator class, 770, 771, 785
ControlToValidate property
BaseValidator class, 782
CompareValidator class, 770
CustomValidator class, 790
RangeValidator class, 787
RegularExpressionValidator class, 788
RequiredFieldValidator class, 783
converting between characters and character codes, 88
converting data types. See data type conversion.
converting strings to numbers and back again, 87–88. See also .String class
Copier coding example, File & Directory classes, 574–576
Copies property, PrintSettings class, 416
Copy method
DataSet class, 947
DataTable class, 952
File & Directory classes, 575, 603
File class, 601
RichTextBox class, 230
TextBox class, 220
CopyBaseAttributes method, WebControl class, 661
Count method, Threading coding example, 1025, 1026
Count property
ControlBindingsCollection class, 906
DataBinding coding example, 893
counter class, SynchronizeThreads coding example, 1029–1030
Counter function, preserving variable values between procedure calls, 129–130
Create method, File class, 601
CreateCommand method
OleDbConnection class, 939
SqlConnection class, 940
CreateDirectory method
Directory class, 602
File & Directory classes, 574, 603
CreateEventSource method, EventLog class, 1081
CreateGraphics method
Control class, 211
drawing 2D figures, 565
image handling, 589
Painter coding example, 580
scrolling images, 353
CreateMeasurmentGraphics method, PrintSettings class, 417
CreateParameter method
OleDbCommand class, 942
SqlCommand class, 943
CreatePrompt property, SaveFileDialog class, 408, 410
CreateRichTextBox coding example, RichTextBox class, 238
CreateText method, File class, 601
CreateTextBox coding example, TextBox class, 228
CreateTreeView example program, TreeView class, 448–450
creating console applications, 13–16
modules, 14
namespaces, 14–15
New Project dialog box, 13–14
Sub Main() procedure, 14
System.console class, 14–15
WriteLine method, 14–15
creating Web applications, 9–13, 617–632. See also Web forms.
Application icon, 617
ASP elements, 621
AssemblyInfo.vb, 625–626
Click event handler, 623
controls, 10–12, 620
event handling, 622–624
Flow layout mode, 10, 619
Grid layout mode, 10, 619
HTML views, 620–621
IIS (Internet Information Server), 10, 617
locations, 617
New Project dialog box, 9, 10
properties, 619
running Web applications, 12–13, 632–633
SelectedIndexChanged event handler, 623–624
Solution Explorer files, 618
Styles.css, 628–632
VBPROJ files, 619
Web.config, 626–628
WebForm1.aspx, 621–622
WebForm1.aspx.vb, 624–625
creating Windows applications, 3–9
buttons, 5–6
controls, 5
dragging items to forms, 5
Form1 window, 4–5
IDE (Integrated Development Environment), 3
New Project dialog box, 3, 4
running Windows applications, 9
Text property, 6–8
Cross constant, Cursor property, 218
CssClass property, WebControl class, 661
Ctrl key, SendKeys key codes, 204
CType function, data type conversion, 80–81
CurrentCell property, DataGrid class, 914, 916
CurrentCellChanged event, DataGrid class, 916
CurrentEncoding property, StreamReader class, 595
CurrentPageIndex property, DataGrid class, 998
CurrentRowIndex property, DataGrid class, 914
Cursor property, 218–219. See also Control class.
Control class, 210
Form class, 157
Splitter class, 357
CursorChanged event
Control class, 212
Form class, 160
CustomColor property, ColorDialog class,413
CustomEndCap property, Pen class, 579
CustomFormat property, DateTimePicker class, 362, 364–365
CustomStartCap property, Pen class, 579
CustomValidator class, 610, 769, 773–774, 789–791. See also validation controls.
ClientValidationFunction property, 773, 790, 791
ControlToValidate property, 790
creating, 790–791
public events, 790
public properties, 790
ServerValidate event, 790
Cut method
RichTextBox class, 230
TextBox class, 220
Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor