PREFACE1
READTHISBEFOREYOUBEGIN17
AMOVERVIEW0FVISUALBASICVB1
AHistoryandaDemonstrationVB1
ABriefDescriptionofVisualBasicVB1
ABriefHistoryofProgrammingLanguagesVB2
MachineLanguagesVB2
AssemblyLanguagesVB2
High-LevelLanguagesVB3
Procedure-OrientedHigh-LevelLanguagesVB3
TheIntroductionofWindowVB4
ObjectOriented/Event-DrivenHigh-LevelLanguagesVB5
OOPTerminologyVB5
AVisualBasicDemonstrationVB7
UsingtheTutorialsEffectivelyVB10
QuestionsVB11
tutorial1
AMIMTRODUCTIONTOVISUALBASICVB
caseCreatingaCopyrightScreenVB
PreviewingtheCopyrightScreenVB16
LessonA:CreatingaNewProjectVB17
StartingVisualBasicVB17
TheVisualBasicStartupScreenVB19
TheMainWindowVB19
TheFormWindowVB19
TheToolboxWindowVB20
TheProjectExplorerWindowVB21
ThePropertiesWindowVB
SettingtheCaptionPropertyVB
SettingObject'sNamePropertyVB16
SettingtheBackColorPropertyVB18
SettingtheProject'sNamePropertyVB28
SavingaVisualBasicProjectVB29
StartingandEndingaVisualBasicProjectVB
OpeningaNewProjectVB
OpeninganExistingProjectVB
ExitingVisualBasicVB
SummaryVB
QuestionsVB
ExercisesVB
LessonB:WorkingwithControlsVB
GettingHelpinVisualBasicVB39
UsingtheF1KeyVB42
AddingaControltoaFormVB
Sizing,Moving,andDeletingaControlVB
AddingLabelControlstotheCopyrightScreenVB
SettingthePropertiesofaLabelControlVB44
SettingtheLeftandTopPropertiesVB46
ChangingthePropertyforMorethanOneControlataTimeVB47
SavingFilesUnderaDifferentNameVB48
SummaryVBf0
QuestionsVBJ1
ExercisesVBJ1
LessonC:WritingCodeVBJ7
AddinganImageContro1totheFormVBJ7
AddingaCommandButtontotheFormVBJ9
WritingVisualBasicCodeVB60
SettingtheBorderStylePropertyVB64
AddingaFrameControltoaFormVB
HidingandDisplayingControlsVB68
TheOptionsDialogBoxVB72
AddingaScrollerControltotheFormVB73
ChangingtheCodeWindowDisplayVB76
PrintingaVisualBasicApplicationVB77
MakinganExecutable(.exe)FileVB78
SummaryVB80
QuestionsVB81
ExercisesVB
tutorial2
DESIGNINGAPPLICATIONSVB89
caseCreatingan0rderScreenVB89
SolvingtheProblemUsingaProcedure-OrientedApproachVB90
So1vingtheProblemUsinganObject-Oriented/Event-Driven
(OOED)ApproachVB93
LessonA:PlanninganOOEDApplicationinVisualBasicVB96
CreatinganOOEDApplicationVB96
PlanninganOOEDApplicationVB97
IdentifyingtheApplication'sTasksVB97
IdentifyingtheObjectsVB
IdentifyingtheEventsVB
DrawingaSketchoftheUserInterfaceVB102
SummaryVB
QuestionsVB
ExercisesVB107
LessonB:BuildingtheUserInterfaceVB109
PreparingtoCreatetheUserInterfaceVB109
IncludingGraphicsintheUserInterfaceVB111
IncludingDifferentFontsintheUserInterfaceVB111
IncludingColorintheUserInterfaceVB112
TheBackStylePropertyVB
TheBorderStyleandAppearancePropertiesVB114
SettingtheTextPropertyVB115
AddingaTextBoxControltotheFormVB
ControllingtheFocuswiththeTabIndexPropertyVB118
LockingtheControlsonaFormVB119
AssigningAccessKeysVB120
SummaryVB124
QuestionsVB
ExercisesVB127
LessonC:Coding,Testing,Debugging,andDocumenting
theApplicationVB129
CodingtheApplicationVB119
CodingthePrintOrderButtonVB
AssigningaValuetoaPropertyDuringRunTimeVB
UsingthePrintFormMethodVB
UsingtheSetFocusMethodVB
InternallyDocumentingtheProgramCodeVB
CodingtheClearScreenButtonVB
WritingVisualBasicEquationsVB138
CodingtheCalculateOrderButtonVB
TheValFunctionVB
UsingtheFormatFunctionVB
TheMinButton,MaxButton,ControlBox,andBorderStyle
PropertiesVB146
TestingandDebuggingtheApplicationVB148
AssemblingtheDocumentationVB149
SummaryVB149
QuestionsVB
ExercisesVB
DebuggingVB
tutorial3
USINGVARIABLESANDCONSTANTSVB161
caseRevisingtheSkate-AwaySalesApplicationVB161
PreviewingtheCompletedApplicationVB162
LessonA:CreatingVariablesandConstantsVB164
UsingVariablestoStoreInformationVB164
DataTypesVB164
NamingVariablesVB167
DeclaringaVariableVB168
StoringDatainaVariableVB169
TheScopeofaVariableVB170
TheOptionExplicitStatementVB171
CreatingaLocalVariableVB173
CreatingaForm-LevelVariableVB176
CreatingaGlobalVariableVB179
AddingaCodeModuletoaProjectVB180
RemovingandAddingaFileVB182
Symbo1icConstantsVB183
SummaryVB1S6
QuestionsVB186
ExercisesVB1S8
LessonB:ModifyingtheSkate-AwaySalesApplicationVB190
StoringInformationUsingLocalandForm-LevelVariablesVB190
ModifyingtheCalculateOrderButton'sCodeVB192
ConcatenatingStringsVB198
TheInputBoxFunctionVB201
TheNewlineCharacterVB204
TheObjectBrowserVB204
MakingaCommandButtontheDefaultButtonVB207
SummaryVB208
QuestionsVB208
ExercisesVB210
LessonC:ImprovingtheAppearanceoftheSkate-AwaySales
ApplicationVB214
UsingaDialogBoxVB214
AddinganExistingFormtotheApplicationVB
SpecifyingtheStartupFormVB
LoadingandDisplayingaFormVB216
AddingaCodeModuletoaProjectVB
MakingaFormResembleaStandardWindowsDialogBoxVB219
AddingtheCopyrightFormtotheProjectVB221
UsingaTimerControlVB223
RemovingaCodedControlfromtheFormVB223
ChangingtheAppearanceoftheMousePointerVB224
SummaryVB
QuestionsVB226
ExercisesVB228
DebuggingVB234
tutorial4
THESELECTIONSTRUCTUREVB
caseCreatingaMathApplicationVB237
PreviewingtheCompletedApplicationVB238
LessonA:TheIf...Then...ElseandSelectCaseStatementsVB241
TheSelectionStructureVB241
WritingPseudocodefortheSelectionStructureVB242
UsingaFlowchartVB243
CodingtheSelectionStructureinVisualBasicVB
RelationalOperatorsVB
ExamplelVB247
Example2VB248
LogicalOperatorsVB
ExamplesoftheAndandtheOrOperatorsVB
Example3VB
Example4VB
TheUCaseFunctionVB
NestedSelectionStructuresVB
Example5VB
TheCaseFormoftheSelectionStructureVB261
TheSelectCaseStatementVB262
ExamplelVB
UsingToandIsinanExpressionlistVB266
Example2VB266
Example3VB269
SummaryVB270
QuestionsVB271
ExercisesVB271
LessonB:MoreVisualBasicControlsVB280
TheMathApplicationVB
UsingVisualBasic'sIconsVB
AddinganOptionButtonControltotheFormVB282
GroupingOptionButtonControlsVB
AddingaCheckBoxControltotheFormVB287
DrawingaControlinaFrameVB
LockingtheControlsandSettingtheTabIndexPropertyVB290
CodingtheLevellandLevel2OptionButtonsVB292
CreatingaUser-DefinedSubProcedureVB294
TheCallStatementVB296
CodingtheAdditionandSubtractionOptionButtonsVB298
CreatingaDefaultOptionButtonVB299
ModifyingtheRandomNumbersUser-DefinedSubProcedureVB300
SummaryVB302
QuestionsVB303
ExercisesVB
LessonC:CompletingtheMathApplicationVB307
StaticVariablesVB307
CodingtheVerifyAnswerButtonVB
TheLoadPictureFunctionVB312
TheMsgBoxFunctionVB313
TheSelStartandSelLengtPropertiesVB319
TheLenFunctionVB320
TheGotFocusEventVB321
CodingtheDisplaySummaryInformationCheckBoxVB321
SummaryVB323
QuestionsVB324
ExercisesVB
DebuggingVB334
tutorial5
THEREPETITIONSTRUCTUREVB
caseCreatingaGradeCalculationApplicationVB337
PreviewingtheCompletedApplicationVB338
LessonA:TheRepetitionStructure(Looping)VB339
TheRepetitionStructureVB339
TheForNext(AutomaticCounter)LoopVB340
Example1VB342
Examp1e2VB343
TheDoWhi1eandtheDoUntilLoopsVB344
FlowchartandPseudocodefortheDoWhileandtheDoUntilLoopsVB
DoWhileExampleVB348
DoUntilExamp1eVB349
AnotherExampleoftheDoWhileLoopVB
CountersandAccumu1atorsVB
SummaryVB362
QuestionsVB363
ExercisesVB366
LessonB:UsingControlArraysVB371
TheGradeApplicationVB371
CreatingaControlArrayWhileAddingControlstotheFormVB374
MakingExistingControlsintoaControlArrayVB377
TheEnabledPropertyVB379
ViewingtheCodeWindowforaControlArrayVB380
CodingtheCheckBoxArrayVB
CodingaControl'sArray'sGotFocusEventVB
SummaryVB
QuestionsVB
ExercisesVB
LessonC:CompletingtheGradeApplicationVB391
CodingtheDisplayGradeCommandButtonVB391
TheChangeEventVB
CenteringtheContentsofaLabelControlVB399
UsingtheMsgBoxFunctiontoCommunicatewiththeUserVB399
TheUnloadEventVB401
SummaryVB404
QuestionsVB404
ExercisesVB
DebuggingVB410
tutorial6
SEQUENTIALACCESSFILES,MEMUS,ANDREPORT
VB
caseTheFA0ApplicationVB
PreviewingtheCompletedApplicationsVB414
LessonA:SequentialAccessDataFilesandReportsVB417
CreatingthePAOApplicationVB417
CreatingaListBoxVB418
TheAddItemMethodVB420
TheSortedPropertyVB422
TheListIndexPropertyVB422
DataFilesVB423
SequentialAccessDataFilesVB
CodingtheEnterInformationCommandButtonVB426
OpeningaDataFileVB426
WritingtoaSequentialAccessFileVB429
ClosingaSequentialAccessFileVB430
CodingtheDisplayTotalsButtonVB431
TheEOFFunctionVB434
ReadingaRecordfromaSequentialAccessFileVB
UpdatingtheAppropriateLabelControlVB
ThePrintMethodVB438
ChangingtheTypeandSheofthePrinterFontVB441
JustifyingandAligningtheNumbersinaColumnVB
CompletingthePAOApplicationVB449
ModifyingthePrintReportButton'sClickEventProcedureVB
SummaryVB
QuestionsVB
ExercisesVB
LessonB:MenusVB466
CreatingtheTextEditorVB466
TheMultiLinePropertyandtheScrollBarsPropertyVB467
SizingaControlalongWiththeFormVB467
AddingaMenuControltotheFormVB
CreatingaSeparatorBarVB473
CreatingtheEditMenuVB474
CodingMenuItemsVB476
TheClipboardObjectVB477
TheSetText,GetText(),andClearMethodsVB477
TheSelTextPropertyVB478
CodingtheEditMenuVB478
CodingtheEditMenu'sCopyCommandVB480
CodingtheEditMenu'sCutCommandVB481
CodingtheEditMenu'sPasteCommandVB481
SummaryVB482
QuestionsVB
ExercisesVB
LessonC:StringManipulationVB491
VisualBasic'sStringManipulationFunctionsVB491
TheLeftandRightFunctionsVB491
TheMidFunctionVB494
TheInstrFunctionVB496
CodingtheEditMenu'sFindCommandVB497
CodingtheEditMenu'sFindNextCommandVB
SummaryVB
QuestionsVB
ExercisesVB
DebuggingVB
tutorial7
DIALOGBOXESANDERRORTRAPPINGVB
caseCompletingtheTextEditorApplicationVB
PreviewingtheCompletedApplicationVB
LessonA:DialogBoxsVB
TheCommonDialogControlVB
DisplayinganOpenDialogBoxVB
TheFilterPropertyVB
TheFilenamePropertyVB
DisplayingaSaveAsDialogBoxVB
DisplayingaPrintDialogBoxVB
TheFlagsPropertyVB
DisplayingaFontDialogBoxVB
DisplayingaColorDialogBoxVB
SummaryVB
QuestionsVB
ExercisesVB
LessonB:CodingtheTextEditor'sFileMenuVB
OpeningtheTextEditorApplicationVB
CodingtheTextEditorApplicationVB
CodingtheFileMenu'sSaveAsCommandVB
ThePrint#StatementVB
SettingtheCancelErrorPropertyVB
TheOnErrorStatementandtheError-HandlingRoutineVB
CodingtheFileMenu'sNewCommandVB
SummaryVB
QuestionsVB
ExercisesVB
LessonC:CompletingtheTextEditorApplicationVB
CodingtheFileMenu'sSaveCommandVB
CodingtheFileMenu'sPrintCommandVB
CodingtheFileMenu'sOpenCommandVB
TheInputandLOFFunctionsVB
CodingtheForm'sUnloadEventVB
SummaryVB
QuestionsVB
ExercisesVB
DebuggingVB
tutorial8
RAMDOMACCESSFILESVB
caseTheCole'sPlayhouseApplicationVB
PreviewingtheApplicationVB
LessonA:RandomAccessFilesVB580
RandomAccessFilesVersusSequentalAccessFilesVB
SequentialAccessVersusRandomAccessFileStorageVB
TheTypeStatementVB
CodingtheCodeModuleVB
CreatingandOpeningaRandomAccessFileVB
CodingtheForm'sLoadEventProcedureVB
ClosingaRandomAccessFileVB
WritingRecordstoaRandomAccessFileVB
CodingtheEnterItemButtonVB
InitializingaRandomAccessFileVB
ReadingRecordsfromaRandomAccessFileVB
CodingtheDisplayItemButtonVB
SummaryVB
QuestionsVB
ExercisesVB601
LessonB:TheCole'sPlayhouseApplicationVB604
TheCole'sPlayhouseApplicationVB604
CodingtheCole'sPlayhouseApplicationVB608
CodingtheFileMenu'sNewCommandVB609
PassingInformationtoaSubProcedureVB610
UsingVisualBasic'sColorConstantsVB611
CreatingaUser-DefinedProcedurethatReceivesDataVB612
CodingtheFileMenu'sOpenCommandVB616
SummaryVB620
QuestionsVB621
ExercisesVB623
LessonC:CompletingtheCole'sPlayhouseApplicationVB627
CodingthelblSeatControlArrayVB627
ReferencingaControlinAnotherFormVB628
CodingtheEnterTicketButtonVB630
TheTrimFunctionVB633
CodingtheCancelTicketButtonVB634
CodingtheReturntoMainButtonVB
SummaryVB636
QuestionsVB637
ExercisesVB638
DebuggingVB642
tutorial9
DATABASEACCESSVB
caseModifyingtheCole'sPlayhouseApplicationVB
PreviewingtheModifiedCole'sPlayhouseApplicationVB646
LessonA:UsingVisualDataManagerVB
DatabaseConceptsandTerminologyVB648
DesigningtheCole'sPlayhouseDatabaseVB649
UsingVisualDataManagertoCreatetheColeDatabaseVB
CreatinganIndexVB
IncludingDataValidationRulesinaTableVB
OpeninganExistingDatabaseVB661
SummaryVB666
QuestionsVB666
ExercisesVB668
LessonB:UsingtheADODataControlVB672
Microsoft'sUDAApproachtoAccessingDataVB672
TheCole'sPlayhouseApplicationVB672
UsingtheADODataControlVB673
BindingControlstoanADODataControlVB678
UsingtheSQLSelectCommandVB679
SummaryVB
QuestionsVB683
ExercisesVB
LessonC:WritingCodetoAdd,Delete,andUpdateRecordsVB689
TheCole'sPlayhouseApplicationVB
TheRecordsetandFieldObjectsVB689
TheADODataControl'sRefreshMethodVB691
CompletingtheCole'sPlayhouseApplicationVB691
CodingthelblSeatArray'sClickEventVB694
CodingtheReturntoMainButtonVB697
CodingtheEnterTicketButtonVB
CodingtheCancelTicketButtonVB700
SummaryVB702
QuestionsVB703
ExercisesVB70S
tutorial10
VARIABLEARRAYSVB717
caseCreatingAPlayrollApplicationVB717
PreviewingtheCompletedApplicationVB
LessonA:StoringDatainaVariableArrayVB720
VariableArraysVB720
AdvantagesofVariableArraysVB721
CreatingaOne-dimensionalVariableArrayVB722
StoringDatainaOne-dimensionalVariableArrayVB723
ThePresidentApplicationVB724
CodingthePresidentApplicationVB724
TheForm'sLoadEventProcedureVB
TheDisplayNameButtonVB
TheDisplayNumberButtonVB
TheTestScoreApplicationVB730
TheAverageScoreButtonVB732
TheHighestScoreButtonVB733
TheUpdateScoresButtonVB
TheClassroomApplicationVB
SummaryVB744
QuestionsVB744
ExercisesVB
LessonB:TheDataGridControlandObjectVariablesVB
TheColfaxIndustriesPayrollApplicationVB
TheDataGridControlVB
ImprovingtheAppearanceoftheDataGridControl'sDataVB761
CodingtheDataGridControlVB
CreatinganObjectVariableVB770
RoundingNumbersVB772
SummaryVB773
QuestionsVB773
ExercisesVB776
LessonC:CompletingtheColfaxPayrollApplicationVB
StoringtheFederalWithholdingTaxTablesinTwoTwo-dimensiona1
ArraysVB783
CreatingaFunctionProceduretoCalculatetheFWTVB787
InvokingaFunctionProcedureVB791
SummaryVB792
QuestionsVB793
ExercisesVB793
DebuggingVB794
tutorial11
WHAT'SNEWWITHVISUALBASIC.NET?VB801
caseCreatingaVisualBasic.NETWindowsFormsCalendarScreenApplicationVB801
PreviewingtheCalendarScreenVB802
LessonA:WorkingwithVisualStudio.NETVB804
TheVisualStudio.NETEnvironmentVB804
IdentifytheComponentsofVisualStudio.NETandthenewIDEVB
ModifyYourProfileintheVisualStudio.NETIDEVB806
CustomizingtheNewVisualStudio.NETIDEVB
UsingSolutionExplorerVB810
WorkingwithDynamicHelpVB811
UsingtheTaskListVB
TheCommandWindowVB
SummaryVB
QuestionsVB815
ExercisesVB816
LessonB:CreatingaWindowsFormsApplicationUsingVisual
Basic.NETVB819
StartingVisualBasic.NETVB819
UsingWindowsFormsVB821
ViewingCodeinWindowsFormsVB821
DifferencesBetweenVisualBasic.NETWindowFormsandVisualBasic
6.0FormsVB822
SettingAppearancePropertiesVB
AddingaLabelControltotheWindowsFormsCalendarApplication
VB823
Addingfor,Text,andFramebetrolsVB824
AddingActiveXCalendarDate,andTimeControlsVB826
AddingaButtonControlandCodeVB827
VisualBasic6.0andVisualBasic.NET:DifferencesinCodingVB
CompletingtheCodefortheButtonVB
VariableDeclarationsinVisualBasic.NETVB
PassingParametersinVisualBasic.NETVB830
AddingaLinkLabeltotheWindowsFormsCalendarApplicationVB831
AddingaMenuandMenuItemsVB832
PrintingWindowsFormsApplicationCodeVB836
SavingandExitingaWindowsFormsApplicationVB836
SummaryVB837
QuestionsVB838
ExercisesVB839
tutorial12
MOREONVISUALBASIC.NETANDTHEINTERNETVB843
caseCreatingaVisualBasic.NETWebFormsApplicationVB843
PreviewingtheWebFormsApplicationVB844
LessonA:TheNewWebFormsEnvironmentVB846
CreatingaNewWebFormsPageVB
AddingHTMLTexttotheWebFormsPageVB848
SettingHTMLTextAttributesVB
CreatingWebFormsHTMLServerControlsVB
CreatingWebFormsServerControlsVB
WebFormsControlsVB
AddingWebFormsServerControlstoYourProjectVB
CreatinganEventHandlerVB
RunningtheWebFormsApplicationVB
SavingandExitingtheWebFormsApplicationVB
SummaryVB
QuestionsVB860
ExercisesVB861
LessonB:CompletingYourWebFormsApplicationProjectVB863
ThePetsOnlineWebApplicationDataProjectVB863
LearningMoreAboutWebApplicationProjectsVB863
TechnicalRequirementsforYourWebApplicationsProjectVB
TheVisualStudio.NETCacheVB864
FilesCreatedwithWebApplicationsVB
CreatingthePetProjWebApplicationProjectVB864
CreatingaData-AccessComponentVB866
BindingtheDataGridVB869
AddingaDetailsPaneltoYourWebFormsApplicationVB
DeployingtheWebFormsApplicationProjectVB877
SummaryVB
QuestionsVB880
ExercisesVB
appendixa
CREATINGAWEBPAGEWITHVISUALBASICVB
appendixb
VISUALBASIC'SDRAG·AND·DROPFEATUREVB
appendixc
USINGTHECLIPBOARD,DDE,ANDOLEVB
appendixd
CREATINGYOUROWNACTIVEXCOMTROLVB
index