|
|
 |

 |
|
Microsoft® Visual Basic® .NET Step by Step
|
|
 |
Author |
 |
Michael Halvorson
|
 |
|
Pages |
656
|
|
Disk |
1 Companion CD(s)
|
|
Level |
Beg/Int
|
|
Published |
01/23/2002
|
|
ISBN |
9780735613744
|
|
ISBN-10 |
0-7356-1374-5
|
|
Price(USD) |
$39.99
To see this book's discounted price, select a reseller below.
|
|
|
|
|
 |
|
|
Index
Send feedback about this index to mspindex@microsoft.com
Symbols
& (ampersand), 101-2
= (assignment operator), 131
& (concatenation operator), 74, 156-58, 164, 329
... (ellipsis), 97, 102
^ (exponentiation operator), 156, 158
\ (integer division operator), 151, 156, 158
_ (line continuation character), 74-75
* (multiplication operator), 151-52
| (pipe symbol), 115
A
Abs(), 160, 362
Abs keyword, 129
Access, Microsoft
BindingContext objects, 522
bound controls, 511-15
connections, establishing, 500-504, 521
current record number, displaying, 518-21
data adapters, 504-9, 521, 526-27
data grids. See DataGrid controls
database selection, 502
datasets, 521
displaying records, 511-15
Jet 4.0 OLE DB provider, 502
navigation controls, 515-18, 522
OleDBDataAdapter control, 522, 526
Query Builder tool, 506-8
SQL SELECT statements, 506-8, 526-27
tables, choosing, 507-8
testing connections, 503
updating data, 535-37
access keys, adding to commands, 101-3
ActiveX controls
installing from Visual Basic 6, 92-95
wrappers required, 92, 352
ActiveX DHTML page applications, 585
ActiveX documents, 585
Add Class command, Project menu, 456-58, 466
Add HTML Page command, Project menu, 575
Add Inherited Form command, Project menu, 451-52, 466
Add New Item button, 257
Add New Item command, Project menu, 257-58, 263, 277, 282
Add Reference command, Project menu, 354-55, 543
Add Windows Form command, Project menu, 405
AddHandler statements, 473, 492
Add-ins, Visual Basic 6, 586
Add/Remove Programs, 398-99
addressing points, 433
AddressOf operator, 473
ADO+, 498
ADO (ActiveX Data Objects), 498
ADO.NET
ADO+, 498
BindingContext objects, 515-18, 522
books about, 598
bound controls, 511-15
Clear method, 513-14
connections, establishing, 500-504, 521
Currency Manager, 515-18
current record number, displaying, 518-21
data adapters, 500, 504-9, 521, 526-27
data grids. See DataGrid controls
DataBinding properties, 522
datasets, 500, 504, 509-11, 513-14, 521
defined, 497
displaying records, 511-18
fields, choosing, 513
Fill method, 514, 525
Generate Dataset command, 509, 521, 528
internal data format, 498-99
models replaced by, 498
navigation controls, 515-18, 522
OleDBDataAdapter control, 504-9, 522, 526
populating text boxes, 514, 522
Position property, 516-18, 522
Query Builder tool, 506-8
schema, 511
SQL SELECT statements, 506-8, 526-27
tables, choosing, 504, 507-8, 513
TextBox controls for data display, 512-15
updating data, 535-37
XML as internal data format, 498-99
.xsd files, 511
advantages of Visual Basic .NET, 3-5, 373-74
ampersand (&), 101-2
Anchor property, 422-25, 429
And logical operator, 176-77
AndAlso logical operator, 166, 178-80, 188
animation
defined, 437
form edge detection, 440
Height property, setting, 444-45
Left property, 440, 448
Location property, 438-43, 448
movement properties, 438
timer object, keying movement to, 440-43, 448
Top property, 440-43, 448
Width property, setting, 444-45
ANSI character set, 331
arcs, 434
arguments
of functions, 139, 267-68
passing to procedures, 256, 280-81, 283
Sub procedures, 273-74
arrays
assigning values to, 290, 313
changes from VB 6, 286
discontinued, control, 286
creating, 287-89, 291-92, 295-96, 313
data types, 287
declaring, 287-89, 292, 295
defined, 287
dimensions, 288, 295
dynamic, 288, 295-98, 313
elements, 288, 290-91, 313
fixed, 288, 291-95
indexes, 288, 313
LBound function, 291
naming, 287
Object type, 287
Option Base no longer supported, 286
Preserve keyword, 298-99
processing elements of, 291-94, 313
public, 313
ReDim statements, 286, 296-99, 313
scope of, 287
string, creating, 337
syntax, 288
UBound function, 291-92, 296
Asc function, 331-33, 340-42, 349
ASCII character set, 331
ASP (Active Server Pages), 556. See also ASP.NET
ASP.NET
books about, 598
browser support, 560
controls for, 558
creating Web Application projects, 564-66, 579
defined, 555-56
FrontPage 2000 Server Extensions, 560-63
HTML controls, 558-59
IIS, installing, 560-63
server controls, 570
targetSchema property, 560, 569
Web Application projects, 557, 564-66
Web Forms. See Web Forms
Web server location, 564
assemblies, 373-74
assigning values at declaration, 198
assignment operator (=), 131
Atan(), 160
auto hide feature, 4, 20-21, 24-26, 31
automatic type coercion, 128
Automation
applications supporting, 353
change from Visual Basic 6, 352
declaring Automation object type, 359, 370
defined, 352-53
disadvantages of, 360
Excel, coding for, 358-66
Excel objects, viewing, 354-58
Excel worksheet manipulation, 363-66
instancing Automation objects, 359, 370
methods, using, 359
mortgage payment calculator example, 360-63
properties, using, 359
Quit method, 358, 359
references to object libraries, 355-57, 359, 370
Visual Studio Object Browser, 354-58
Autos window, 222-23, 230
B
base classes
creating, 455-63, 466
inheriting from, 463-65, 467
Private keyword, 459
Bézier splines, 435
BindingContext objects, 515-18
Birthday program example, 72-77
bitmap files, opening, 109, 118
books, recommended, 597-98
Boolean data type, 143
Boolean expressions, 168
bootstrapping programs, 391
BorderStyle property, 46, 133
bound controls, 511-15
Break mode, 218-23
breakpoints, 219-20, 228-30
browsers. See also Internet Explorer
specifying when opening URLs, 91
starting from code, 308-9
support for versions, 560
targetSchema property, 560, 569
Brush objects, 435-36
bugs. See debugging
Build menu
Build Solution command, 59-60, 392, 400
build type selection, 63
Configuration Manager command, 59
Build Solution command, 59-60, 392, 400
building deployment projects, 386-88, 392-93
Button controls
adding to forms, 38-39, 70
button objects, defined, 70
coding, 52-54
creating, 95
event handling, coding, 70-71
moving, 40
properties, setting, 43-45, 70
resizing, 40
Size property, 421
text, setting, 44
Web Forms version, 569-72
buttons. See Button controls
ByRef keyword, 280-81, 283
Byte data type, 142
ByVal keyword, 277, 280-81, 283
C
.cab files. See cabinet files
cabinet files
Cab Project template, 377
creation during deployment, 390-91
defined, 375
maximum size, specifying, 391
calling
Function procedures, 267, 269, 282
Sub procedures, 274-75, 283
camel casing, 135
Cancel buttons, 70
CancelButton property, 421-22
carriage return characters, 192, 293-94
Case. See Select Case
casting, runtime errors, 157
Catch keyword. See Try...Catch blocks
Catch When statements, 242-44, 250
CD burning, 375, 393
changes from Visual Basic 6. See Visual Basic .NET, new and changed features
Char data type, 142
characters
Asc function, 331-33
Chr function, 332-34, 340-42
CheckBox controls
Checked property, 80-81
creating, 80-84, 95
event procedures for, 86
CheckedListBox controls, 85
Chr function, 332-34, 340-42
class libraries, including methods from, 161-64
classes
Add Class command, 456-58
base. See base classes
creating user-defined, 455-63
declaring derived, 463-64
delimiting within modules, 463
derived, 463-65, 467
Inherits keyword, 463-65, 467
instantiating, 461
method declarations, 460, 467
Private keyword with variables, 459, 466
property declarations, 459, 467
user-defined, creating, 455-63
variable declarations, 458-59, 466
Click events, 54-56, 105
client applications, 353
Close command
adding to menus, 111
event procedure for, 115-16
CloseMainWindow method, 368, 370
closing
programming tools, 20
programs, 72
Visual Studio .NET, 31
Windows applications, 367-70
code, writing, 62
Code Editor
automatic code addition, 53
error messages, 53
help, getting, 27
opening, 50, 62
viewing forms, 52-53
collections
adding objects to, 308, 314, 419-20
changes from VB 6, 286
controls, 300, 302, 314
creating custom, 307-11, 314
defined, 300
For Each...Next loops, 301-6, 314
indexes, 300-301
Microsoft Office applications with, 311-13
Name property with, 305-7, 314
populating, 308
referencing objects in, 300-301
Tag property, 305
testing, 310-11
URLsVisited project, 307-11
Visual Basic for Applications, 312
ColorDialog controls
adding to component tray, 110
adding to menus, 113-14
Define Custom Colors button, enabling, 117
event procedure for, 116-17
properties, table of, 117
purpose of, 109
ShowDialog method, 124
user selection from, 119-20, 124
colors
custom, 117
ForeColor property, 19
user interface elements, 116
columns, database, 499, 508, 513, 524, 531
COM (Component Object Model)
Active X controls, 93
changes from Visual Basic 6, 352
deployment changes, 372
disadvantages, 373
events, 552
Internet Explorer object library references, 543-44, 554
viewing objects of, 355-58
wrappers for, 356-57
combo boxes. See ComboBox controls
ComboBox controls
Add keyword, 88
creating, 95
defined, 85
ListIndex property, 66
SelectedIndex property, 66
URLs, displaying in, 547-49, 551-53
Command window, 226-28, 230
CommandButton controls. See Button controls
command-line arguments, passing, 368
commands, adding access keys for, 101
commands, menu. See menus
comments, 55, 86
comparison operators, 168, 182, 188, 332-33
compilation
Build menu, 59
build type selection, 63
changes from Visual Basic 6, 59
Output window, 15
compiler errors, 216
component tray, 99
Components tab, Toolbox, 367
Concat method, 329
concatenation, Concat method, 329
concatenation operator (&), 74, 156-58, 164, 329
conditional expressions
comparison operators with, 168-69, 188
defined, 168
in Do loops, 201
evaluation by debugger, 223, 225
If...Then structures with, 169-71, 188
Configuration Manager
build settings for deployment, 387-88, 400
opening, 59
Connect To Database button, 501
connections, ADO.NET
DataGrid controls, 524-28
establishing, 500-504, 521
reestablishing, 525
connections, database, 500-504, 521
console applications, 428
constants, 148-50, 164
containers, choosing, 258
control arrays discontinued, 286
controlling applications, 353-54, 358-66
controls
ActiveX. See ActiveX controls
adding to forms at runtime, 419-22, 429
Anchor property, 422-25, 429
animating. See animation
bound, 511-15
CheckBox, 80-84, 86, 95
collection, 300, 302, 419-20, 429
combo boxes. See ComboBox controls
DateTimePicker. See DateTimePicker control
defined, 78
dialog box. See dialog boxes
Dock property, 422-25, 429
HTML, 558-59
icons indicating inheritance, 453
Left property, 440, 448
list boxes. See ListBox controls
location. See Toolbox
Location property, 419-20
manipulating as collections, 302-3
menus. See MainMenu control
moving, 40
New keyword for creating, 419-21
organizing on a form, 422-25
radio buttons. See RadioButton control
resizing, 40
server, 558
Size property, 421
standard-sized, creating, 192
Text property, setting at runtime, 419-20
Timer. See Timer control
Top property, 440-43, 448
validator, 574, 579
Web application, 558
Web Forms, 558-59, 566
Controls collection, 300, 302, 419-20, 429
conversions, Option Strict with, 128
coordinate systems, 433-34
copying to Clipboard, 326
Cos(), 160
Cos keyword, 129
CreateObject function, 359, 361, 370
CType function, 359, 361, 370
Currency data type, 128
Currency Manager, 515-18
curves, 435
D
DAO data binding, 585
data adapters, ADO.NET, 500, 504-9, 521, 526-27
data binding, 585
Data control, 585
data grids. See DataGrid controls
Data menu, Generate Dataset command, 509, 521, 528
data types
assigning to variables, 130-31
automatic type coercion, 128
changes from Visual Basic 6 to Visual Basic .NET, 128
declaring variables as, 145-46
default type assignment, 256
example program illustrating, 143-47
table of, 142-43
type abbreviations obsolete, 137
user-defined, 148
Variants, 586
databases. See also ADO.NET
BindingContext objects, 522
bound controls, 511-15
Clear method, 513-14
columns, 531
connections, establishing, 500-504, 521
current record number, displaying, 518-21
data adapters, 504-9, 521, 526-27
DataBinding properties, 522
DataGrids. See DataGrid controls
datasets, 504, 509-11, 521
defined, 498
displaying records, 511-15, 515-18
fields, 499, 508, 513, 531
Fill method, 514, 525
front ends, 497
Generate Dataset command, 509, 521, 528
navigation controls, 515-18, 522
nodes, 501
OleDBDataAdapter control, 522, 526
populating DataGrids, 525, 531, 538
populating text boxes, 514, 522
Position property, 522
providers, 502
Query Builder tool, 506-8
records, 499, 531
recordset objects discontinued, 498
rows, 531
schema, 511
SQL SELECT statements, 506-8, 526-27
tables, choosing, 504, 507-8
TextBox controls for data display, 512-15
updating, 535-37
Web Forms environment, 521
DataGrid controls
Anchor property, 529, 532
BackColor property, 533, 538
binding, 524, 538
Clear method, 531
colors, setting, 533-34, 538
ColumnHeadersVisible property, 533
columns, 524, 531-32, 538
connections, 524-28
creating data grid objects, 528-33, 538
data adapter creation, 526-27
data grid object creation, 528-33, 538
DataMember property, 524, 530
DataSource property, 524, 529
editing data, 536, 538
fields, 531
Fill method, 525, 531
formatting cells, 533-35, 538
GridlineColor property, 534
HeaderBackColor property, 534
OleDBDataAdapter control, 526
populating, 525, 531, 538
PreferredColumnWidth property, 533
purpose of, 523-24
ReadOnly property, 535, 536
records, 531
rows, 524, 531, 537
sorting, 532, 538
SQL SELECT statements, 526-27
Update method, 536, 538
updating data, 535-38
datasets, ADO.NET
creating, 509-11, 521, 528
defined, 500
filling, 522
navigating, 515-18
Date data type, 143
dates
calculating length between, 74
control for input. See DateTimePicker control
DateString property, 106, 108
Insert Date command, 326-27
Now property, 108
system, setting, 106
system clock, returning value of, 74
DateString property, 327
DateTimePicker control
adding to forms, 73
code, adding for, 74
navigating, 462
purpose of, 66, 72
using, 75-77
Day property, 108
DDE (Dynamic Data Exchange), 585
debug builds, 58-59, 63, 387
Debug menu, Start command, 14
Debug toolbar, 218-19, 229
debugging
Autos window, 222-23, 230
Break mode, 218-23
changing values, 226-27
Command window, 226-28, 230
conditional statement evaluation, 223, 225
Debug toolbar, 218-19, 229
defensive programming, 247-48
new features in Visual Basic .NET, 215
properties, displaying value of, 230
removing breakpoints, 228-30
setting breakpoints, 219-20, 229
Step Into button, 222, 229
Stop Debugging button, 223, 230
Stop statement, 221
types of bugs, 215-18
variables, displaying value of, 221-22, 224-25, 230
Watch window, 224-25, 230
Decimal data type, 142
decision structures
AndAlso logical operator, 166, 178-80, 188
conditional expressions, 168-69
Else, 169-70, 172, 175
ElseIf, 169-70, 172, 174
End If, 169-70, 172
If...Then, 169-75, 188
logical operators, 175-77
looping. See loops
OrElse logical operator, 166, 178-80, 188
Select Case, 180-86, 188
declaring variables, 130-33, 164, 198
DefaultPageSettings property, 489
defensive programming, 247-48
Define Custom Colors button, enabling, 117
delegates, 473
deleting objects, 62
deployment
Add To Solution option button, 378, 384
advantages of .NET, 373-74
assemblies, 373-74
Author property, 389
bootstrapping programs, 391
Build Solution command, 392, 400
building, 386-88, 392-93
Cab Project template, 377
cabinet file creation, 390-91
CD burning, 375, 393
configuring build settings, 387-88, 400
conflicts with existing applications, 373
creating deployment projects, 376-83
default path, 389
defined, 371
digital signatures, 391
DLLs, 373
edition variations, 371
File System Editor, 382, 388
files installed, viewing, 396-98
files to include options, 379-80, 385
floppy disks for, 375
managing, 374-75
Manufacturer property, 389
Merge Module Project template, 377
methods available for, 375
MSIL. See MSIL
naming output files, 390
naming solutions, 378
.NET Framework files required, 375, 382-83, 393, 395
new features of Visual Basic .NET, 372
optimization choices, 391
Package Code numbers, 389
path, target, 395
planning, 373-75
preventing builds, 388
Product Code numbers, 389
project type options, 379
projects, 374-75, 376-83
properties, setting, 389-91
Readme files, 386, 398
registration, 374
release builds, 387-88
Release folders, 393
Setup and Deployment Projects folder, 377, 384
setup program, running, 394-95, 400
Setup Project template, 377, 383-86
Setup Wizard, 376-83, 400
shortcuts, creating, 382, 388-89, 400
size of file produced, 397
target computer system requirements, 395
testing, 395-96
uncompressed output file option, 390
uninstalling, 398-99, 400
Version property, 389
Web Setup Project, 377
XCOPY installation, 372, 374
derived classes, 463-65, 467
design mode, 39
DesktopBounds property, 414, 416-18
detecting mouse events, 186-87
DevX Web site, 596
DHTML Page Designer, 556
Diagnostics class, 369
dialog boxes
adding to menus, 109-11
buttons, actions, 412
CancelButton property, 421-22
controls, standard, 108-15
creating from forms, 451
custom, 121
DialogResult property, 412
displaying, 113-15
forms as, 405
InputBox function, 136-38
MsgBox function, 139-41
purpose of, 108-9
ShowDialog method, 113-17, 405, 408, 411
standard, table of, 109
DialogResult property, 412
digital clock example project, 206-9
Dim statements
class instantiation with, 461, 467
objects, creating, 419-20, 428
purpose of, 78, 130
variable declarations with, 130-32
disk drive errors, 235-40
displaying HTML documents, 547-51
distributing software. See deployment
division, 151-52, 156
DLLs for deployment, historical, 373
Do loops, 200-205, 213
Do While loops, 200-205, 213
Dock property, 422-25, 429
docking, 12, 20, 22-24, 31
document files, 317
documents. See text files
Double data type, 142, 153
drag-and-drop functionality, 586
DrawArc method, 434
DrawBezier method, 435
DrawCurve method, 435
DrawEllipse method, 434, 448
DrawImage method, 474-75
drawing
arcs, 434
Bézier splines, 435
Brush objects, 435-36
curves, 435
ellipses, 434, 448
filled objects, 435
Graphics object declaration, 435
lines, 434, 435
Paint event procedures, 435-37
Pen objects, 435-36
persistence of, 435-36, 448
polygons, 435
rectangles, 434
splines, 435
strings, text, 477-79, 484, 493
Drawing namespace
defined, 433
drawing methods, table of, 434-35
Fill methods, 435
Graphics class, 434-35, 448. See also graphics
DrawLine method, 434, 435
DrawPolygon method, 435
DrawRectangle method, 434
DrawString method, 477-79, 484, 493
drop-down list boxes. See ComboBox controls
Dynamic Data Exchange (DDE), 585
Dynamic Help, 27-29
E
early binding with Automation, 359
editions, differences in, 5, 371, 589
ellipses, 434, 448
ellipsis (...), 97, 102
Ellipsis button, 18
Else, 169-70, 172, 175
ElseIf, 169-70, 172, 174
encryption, 339-47
End Function statements. See Function procedures
End If, 169-70, 172
End statements, 52
End Try keywords, 237-38
endless loops, 202, 212
EOF function, 317, 321-22, 348
Err object, 233, 250
error handling
Catch When statements, 242-44, 250
defensive programming, compared to, 247-48
defined, 231
Description (of error) property, 240-42
disk drive errors, 235-40
End Try keywords, 237-38
Err object, 233, 240-44, 250
exceptions, 232, 236-37, 244, 250
Exit Try statements, 248-49, 251
failure points, table of, 234
Finally clause, 238-40
multiple errors, testing for, 242-44
Number (of error) property, 240-42
path errors, handling, 235-40
purpose of, 233
raising exceptions, 244, 250
retry period, 244-46
Try...Catch. See Try...Catch blocks
unhandled exceptions, 236-37
when to use, 233-34
errors. See also debugging
compiler, 216
creating with Err.Raise method, 244
defensive programming, 247-48
handling runtime errors. See error handling
logic, 217, 218
numbers, Err object, 241-42
Out of Memory errors, 243
path errors, 235-40
runtime. See runtime errors
syntax, 216, 217
unhandled exceptions, 236-37
event handlers. See event procedures
event procedures
CheckBox controls, 81-82
Click events, 70-71, 105
creating, 50-51
decision structures in. See decision structures
defined, 50, 79, 168, 473
dialog boxes, opening with, 113-14
displaying in Code Editor, 86
End statements with, 203
menu commands, 104-7
mouse events, 186-87
naming convention, 105
printing, 472-73, 492-93
process flow, 166
Timer control, 210
Web Forms, 571-73, 579
writing, 186-88
event-driven programming, 166-68
events
Base Class Events, 436
COM, 552
Internet Explorer, 551-54
listing for an object, 167
Excel, Microsoft
Application type, 364
automating, 358-66
Automation compatibility, 353
commands, issuing with Automation, 361
methods, using, 359
Pmt method, 359, 361-62
Quit method, 358, 359
viewing objects, 354-58
Visible property, 364-65
Workbook type, 364
worksheet manipulation, 363-66
Worksheet type, 364
exceptions, 232, 236-37, 244, 250. See also error handling; runtime errors
exclusive OR. See Xor logical operator
executable files
building, 59-60, 63
defined, 58
Exit command
adding to menus, 111
event procedure for, 116
Exit command, File menu, 30-31
Exit For, 200, 212, 312-13
Exit Try statements, 248-49, 251
Exp(), 160
exponentiation operator (^), 156, 158
expressions, evaluation of, 56
F
F5 (run command), 14, 31
fields, database, 499, 508, 513, 531
File menu
Exit command, 30, 31
Save All command, 54, 62
File Not Found errors, 236
File System Editor, 382, 384, 388-89
FileClose function, 317, 321-22
File.Exists method, 247-48
FileOpen function, 317-22, 324-28
files
closing, 317, 321-22
default directory for projects, 9
name extensions, viewing, 9
testing for existence, 247-48
text. See text files
FileStream class, 482, 493
Finally clause, 238-40
Fixed3D BorderStyle property, 133
FlexGrid controls, 524
floppy disks for deployment, 375
flow-control structures. See decision structures; loops
Font property, 18, 46-47
FontDialog controls, 109
fonts, setting for printing, 477-79
For Each...Next loops, 301-6, 311-13
ForeColor property, 19, 47
Form Designer, viewing, 410
forms
Add Inherited Form command, 451-52, 466
adding to projects, 406-9, 428
Anchor property, 422-25, 429
background images, adding, 207
Base Class Events, 436
BindingContext objects, 515-18
buttons, adding to, 38-40
CancelButton property, 421-22
component tray, 99
controls, adding to, 38-39, 419-22, 429
Controls collection, 300, 429
coordinate systems, 433-34
created with project, 37
customizing inherited, 453-55, 466
declaring, 410, 428
default names, 405
design mode, viewing in, 410
DesktopBounds property, 414, 416-18
dialog box creation. See dialog boxes
dialog box type, 405
DialogResult property, 408, 412
Dim statements creating, 419-20, 428
displaying, 405, 408, 411, 428
Dock property, 422-25, 429
Form class, inheriting, 450
Form Layout window, 414
global scope for variables, 198-200
icons indicating inheritance, 453
inheriting with Inheritance Picker tool, 450-53, 466
loading, event procedure, 87-88
loading order determination, 425-29
Location property, 414, 416
maximizing, 418-19, 428
MDI properties, 404
minimizing, 418-19, 428
modal, 405, 411
modeless, 405
moving objects on. See animation
multiple, adding, 405-9
naming, 405, 407
new features of Visual Basic .NET, 404
New statements creating, 419-20, 428
objects, switching between, 45
Opacity property, 446-47
positioning, 413-18, 428
positioning controls, 419-25
properties, setting, 90
Property Pages, 426
resizing, 38, 424
restoring, 418-19, 428
saving, 62
Show method, 405, 411, 428
ShowDialog method, 405, 408, 411, 428
sizing, 414, 416-18, 419
StartPosition property, 414-16, 428
startup object determination, 425-29
Sub Main procedures, 425-29
Text property for title bars, 90
uses for, 405
viewing, 52, 410
Web. See Web Forms
WindowState property, 418-19
formulas, 150, 164
For...Next loops, 190-200, 212
Frame controls. See GroupBox controls
Framework, .NET. See .NET Framework
FromFile method, 66
front ends, 497
FrontPage 2000 Server Extensions, 560-63
full-text Help searches, 29-30
Function procedures
arguments of, 267-68
assigning values to, 268
ByRef keyword, 280-81, 283
ByVal keyword, 280-81, 283
calculations with, 269-72
calling, 267, 269, 282
declaring, 267-68, 271
defined, 139, 266, 267
End Function statements, 271
passing arguments to, 280-81, 283
purpose of, 266
Return keyword with, 268-69
scope of, 267
syntax, 267-69
Function statements. See Function procedures
functions, 139. See also Function procedures
G
GDI+ functions
defined, 433
transparency, 446-47
general-purpose procedures, 266-67
Generate Dataset command, 509, 521, 528
Get blocks, 459
Get Started pane
new feature, as, 4
opening, 7
graphics
animation, 437-48
Brush objects, 435-36
coordinate systems, 433-34
displaying. See PictureBox control
DrawEllipse, 448
drawing methods, table of, 434-35
Fill methods, 435
form edge detection, 440
Graphics class, 434-35
Graphics object declaration, 435
Height property, setting, 444-45
Left property, 438, 440, 448
Location property, 438-43
MeasureString method, 479
Move method, substitutes for, 438
opacity, 446-47
Paint event procedures, 435-37
Pen objects, 435-36
persistence of, 435-36, 448
printing, 470-74, 493
SetBounds method, 438
System.Drawing namespace, 433
timer object, keying movement to, 440-43
Top property, 438-43, 440-43
transparency, 446-47
upgrading Visual Basic 6 programs, 586
Width property, setting, 444-45
GroupBox controls, 84
H
HasMorePages property, 493
Height property, setting, 444-45
Hello World program example, 66-72
help
Dynamic Help feature, 27-30
method of finding, table of, 27
newsgroups about .NET, 597
online reference, 26
Web sites about Visual Basic .NET, 596-97
help dialog box creation, 406-9
hiding
file name extensions, 9
programming tools, 20-21, 24-26, 31
Hour property, 108
hovering, mouse, 186-87
HTML Designer, 575, 579
HTML documents
creating. See Web Forms
displaying, 547-51
tags, 568
Web Forms Designer display mode, 568
HyperLink control, 575-79
Next
Last Updated: January 12, 2002
|