Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

controls 531


Click procedure, 56–58
ClickOnce technology, 62, 65
client controls. See HTML
Clock menu program
adding access keys to, 101–02
changing order of items, 102
creating, 98–99
editing menu event procedures,
103–05
clock properties, 106
closing
programs, 13
programs without saving, 251–52
tool windows, 17
Visual Studio, 33
code
case sensitivity in, 193
character length of lines, 75
comments in, 86
declaring variables at top
of form, 139
executing one line of, 225
for displaying Print dialog box
and print files, 427–28
HTML in Web pages, 522
opening hidden forms with, 373
program style, 54
protected, 229
using fundamental data
types in, 137–41
viewing, 11
writing, 52–56, 65
Code Editor
accessing Help files for, 28
character length of lines
of code, 75
displaying, 54
entering program statements,
52–56
examining expressions,
properties, variables in, 225
executing one line, of code in, 225
identifying mistakes in, 54–55
opening, 52, 65
code snippets
adding, 208
inserting, 203–08
reorganizing, 207–08
Code Snippets Manager command,
207–08
Code Snippets Manager
dialog box, 207
code-behind files, 468
collections. See also Controls
collection
creating, 304–06, 312
overview, 297
processing objects in, 311


referencing objects in, 298
special treatment for
objects in, 311
tracking Internet addresses with,
305–06
color
assigning, 113
changing, 116
changing cell, 480–81
filling shapes with, 377
in Visual Basic code, identifying
elements with, 54
setting background, 391
setting foreground, 49
Color dialog box
customizing color settings, 114
opening, 116
writing event procedures for
button, 113–14
ColorDialog control
adding, 111
properties of, 114
purpose, 110
ColumnHeadersVisible property,
480, 489
columns. See also fields
changing width, 478, 489
configuring individual, 479–80
hiding headers, 480, 489
removing, 476, 488
ComboBox control, 85
command prompt, 373
Command window
overview, 223
running commands in
IDE from, 226
running File .SaveAll, 224
switching from Immediate
window, 223, 226
commands
>cmd, 223
Auto Hide (Windows menu),
21–22
menu, guidelines, 100
running in IDE from Command
window, 226
commas, displaying with Format
function, 140, 137
comment character (‘), 295
comments, 57, 86, 95
comparing strings, 33, 329–31
comparison (or relational)
operators, 161, 173–77, 330–31
compiler settings
checking, 31–33
customizing, 29–30
in Visual Studio, 32–33
compiler settings, checking, 31–33

compiling
forms into .exe or .dll files, 394–95
programs, 34
component tray, displaying in the
IDE, 98
components
data access layer, 451
switching between, 8
conditional expressions
comparing, 167–69, 179
defined, 161
If... Then decision structure,
161–62
in Do Loops, 192
logical operators in, 167–69
order of If statements, 163
order of operator types, 167
writing, 179
configuring
data source for Web display,
514–15
date time picker object, 78
individual columns, 479–80
SQL statements, 514–15
Visual Studio for Visual Basic
Development, 34
connecting
to database tables, 488
to databases, 466, 468–71
connection string, 446
connections
binding to controls on forms, 443
choosing, 448
establishing, using Data Source
configuration Wizard, 444–52
console applications, 373–74
Constant Tester program, 142–43
constants
creating, 157
in program code, 142–43
vbCR, 206
continuing lines with _ character,
75, 187
controls
adding to forms, 354, 364–67, 374
adding to Web pages, 522
bound, 454–55
defined, 90
dialog box, 110–11
masked text box, binding to
dataset objects, 458–59
moving with For Each... Next
loops, 301–02
on user input, 164–67
organization of, in Toolbox, 41
organizing, on forms, 367–71
overview, 67
server vs. client, 493
Free download pdf