Visual Basic 6.0编程(提高版 英文原版)

Visual Basic 6.0编程(提高版 英文原版)
作 者: Diane Zak
出版社: 电子工业出版社
丛编项: 国外计算机科学教材系列
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: VB
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《Visual Basic 6.0编程(提高版 英文原版)》作者简介

内容简介

这是一本详细讲解如何使用Visual Basic 6.0进行编程的英文原版教材。该书使用面向对象/事件驱动的Visual Basic 6.0语言,采用任务驱动的方式向学生讲解编程的概念,激发学生对于基于Windows应用程序的热情,让学生理解如何充分利用Visual Basic的强大功能,学会编写实际工作中会遇到的应用程序。书中强调了设计技巧,如访问数据库中的信息、创建与打印报表、引用对象、使用OLE等。此外,该书向学生简介了面向对象编程技术以及Visual Basic .NET的最新功能。作为教材,书中提供了大量的练习题,并提供有教辅材料,另外在随书光盘中,提供有专为本教材定制的Visual Basic 6.0软件。该书是美国卡内基梅隆大学SSD软件系统开发课程指定教材,可作为大中专院校计算机专业学生的教材和参考书,也可供计算机工程技术人员及参考,同时对推进我国在计算机教学上尽快赶上国际先进水平以及提高学生的英语水平也大有裨益。

图书目录

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