Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

532 Controls collection


server, adding to Web pages,
501–02
validator, 509, 522
Windows Forms, 67
writing event procedures for Web
pages, 504–05
Controls collection.
See also collections
moving controls with
For Each... Next loops, 301–02
moving objects, 311
Name property for special
treatment of objects, 303–04
object experimentation
procedure, 299
overview, 297
Controls collection program
moving controls with
For Each... Next loops, 301–02
using For Each... Next loops
to change Text properties,
299–301
convert to string (CStr)
function, 57
coordinate system, 376
Cos(n) method, 152
counter variables
global, 140, 190–91
in loops, 182
opening files with, 190–91
other uses for, 186
overview, 183
crashes, program. See run-time
errors
creating
folders, 72
modules, 248–51
standard-sized objects, 183
toolbars with ToolStrip control,
107–10
creating lines, shapes on, 390
CStr (convert to string) function, 57
customizing
color settings, with Properties
window, 114
compiler settings in IDE, 29–30
Help files, 34
inherited forms, 412
Web pages, 509–11

D

data access in Web forms
environment, 488
data grid view objects
adding second, 482–84, 489
changing column width, 489
creating, 471–74

creating color scheme for
rows, 489
creating to display database
tables, 488
hiding column headers in, 489
preventing editing or changing
of data, 489
previewing data bound to,
474–75, 488
removing columns from, 476, 488
setting properties, 479–82
sorting data in, 478–79
data navigator, 443
Data Source Configuration Wizard
choosing database model, 445
creating datasets in, 443
starting, 445
Data Sources window
creating database objects on
forms with, 454–58
overview, 452
data types
assigning, 125
fundamental, 135–41
inference of, by Visual Basic,
126–27
signed, 135
specifying in function
procedures, 257
string, 135
unsigned, 135
user-defined (UDTs), 141
Data Types program, 137–41
database objects
creating by using Data Sources
window, 454–58
defined, 450
databases
choosing format, 446
copying local, 449
displaying information on Web
pages, 512–13
establishing connection to, 466,
468–71
Faculty .mdb sample, 444
filtering and sorting information
stored in datasets, 466
formatting data on forms, 466
overview, 441
relational, 443
updating, 485–87, 489
DataBindings property,
overview, 459
datacentric applications, 439
DataGridView control
overview, 467
scrolling, resizing, and sorting
with, 478–79

DataGridView tasks list, 476
DataGridView Tasks list, 474
Dataset Designer, 451–52
datasets
binding controls to, 458–59
creating, 466
defined, 443, 450
displaying information on forms,
453–55
in Data Source Configuration
Wizard, 445, 452
information, displaying during
debugging sessions, 226
typed vs untyped, 451
visualizers, 220
DataTips, 215–16
Date data type, 136
date, setting system,
in Windows, 105
DateString property, 104–05, 107
DateTimePicker control, 73–78
DayOfYear property, 75
debug builds, executable file type in
Visual Studio, 60
Debug Test program
debugging, 212–14
folder location, 218
removing breakpoints, 224–25
Debug toolbar, displaying, 225
debugging mode. See also testing
disabling, in Web config, 506
opening text visualizers in,
220–21
starting, 214
stopping, 226
using, 212–17
Debugging Not Enabled dialog box,
505–06
debugging sessions
displaying HTML, XML, dataset
information during, 226
stopping, 226
Decimal data type, 136, 182
decision structures. See also If... Then
decision structures; Select Case
decision structures
decision structures, defined, 161
declaration statements, array
information included in, table,
282, 274
declared variables, hiding in
classes, 412
declaring collections as variables,
304–05
declaring variables
at top of form’s code, 139
by inference, 126–27
implicitly, 126–27
Free download pdf