Introduction to VB 6 Materials Prerequisites Course Outline
Introduction to VB 6 Materials & Prerequisites Course Outline Background Information 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 1
Materials & Prerequisites n Book: n Sam’s Teach Yourself Visual Basic in 24 Hours By Greg Perry with Sanjaya Hettihewa n ISBN 0 -672 -31533 -5 n 3 copies at Barnes & Noble (Harbison) on 1/27/2004 n 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 2
Materials & Prerequisites n Software: n Visual Basic 6. 0 n n A Working Model in included with the book Course will target the VB 6 Professional Edition Check with MS for free 90 day trial edition Participant CD n VB 6 Service Pack 5 n n Microsoft Jet 4. 0 Service Pack 8 n n http: //www. microsoft. com/downloads/details. aspx? familyid=9 ad 000 f 2 -cae 7 -493 d-b 0 f 3 ae 36 c 570 ade 8&languageid=f 49 e 8428 -7071 -4979 -8 a 67 -3 cffcb 0 c 2524&displaylang=en MDAC Buffer Overrun Secrity Patch MS 04 -003 n 1/26/2004 http: //msdn. microsoft. com/data/downloads/updates/default. aspx Microsoft Data Access Components (MDAC) 2. 7 SP 1 Refresh n n http: //www. microsoft. com/downloads/results. aspx? product. ID=3 D 99 F 106 -AA 6 D-4113 -AE 4530 B 61394 B 1 E 0&freetext=&Display. Lang=en Get the one that matches your system!!! Microsoft Data Access Components (MDAC) downloads can be found from: n n http: //msdn. microsoft. com/vstudio/downloads/updates/sp/vs 6/sp 5/default. aspx http: //www. microsoft. com/technet/treeview/default. asp? url=/technet/security/Bulletin/MS 04003. asp PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 3
Materials & Prerequisites n Software, Continued: n MSDN Library (October 2001 recommended) n n 1/26/2004 This contains the latest Online help for VB 6 Included with VB 6 Professional Edition PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 4
Materials & Software n Recommended – not required: n MS Office Professional (Microsoft Access) n n n Icon Editor n n Version 2000, XP, or 2003 should be OK Version 97 can be used, but beware of some minor differences in project setup and files required. If you want to create of customize icons for your applications. You can also use the icons included with VB or download icons from the web. Watch for copyrights, etc. Graphics editor n 1/26/2004 Any application to create and/or edit graphics (images) if you want to “spiff” up your apps. Again, VB and the web are alternative sources. PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 5
Materials & Software n Bring (blank) Media for copying your work Floppy Disks n USB drives n n n Watch for cheap keychain USB drives from local stores (Office. Max have had them as low as $9. 99 after rebates, I didn’t see any specials this week). NOT CD-R’s n 1/26/2004 The computers do not have CD burners. PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 6
Course Outline, Week 0 n Background Information n Computer Science Basics n n n Object Orientation Basics n n n What is an object Visual Basic built-in “Objects” Windows Environment Basics n n Binary Numbers Data Types Instructions and Data Compilers and Interpreters Variables and Assignments Message-based and Event-Driven Architecture The different VB’s (VB, VBA, VBScript) 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 7
Course Outline, Week 1 n Getting Started with VB 6 Installation & Setup of VB 6 for development n Launching VB 6 n VB 6 Settings n The VB 6 IDE n 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 8
Course Outline, Week 1 n Your first app (Hello World) n n Calculating an approximation of PI n n Running the application Very simple – use 22/7, but use controls for input/output Designing a user interface 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 9
Course Outline , Week 1 n n Adding code to your application Visual Basic Statements n n n Simple Variable and Constant Declarations Assignment Statements and Expressions If … Then … Else … End If Accessing controls on the form Control Properties, Methods, and Events n Simple controls: n n n 1/26/2004 Text. Box, Label, Command. Button, Timer List. Box and Combo. Box File, Directory, and Drive – example of control interaction PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 10
Course Outline, Week 2 n n n Loops Select Case Operator Precedence Arrays Data Type Conversion Variable Naming Conventions Object Reference Variables Object Instantiation String Manipulation More controls (Option Button, Check. Box, Frame) Control Arrays 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 11
Course Outline, Week 3 n n n Debugging Error Handling Comments The App object Procedures and Parameters Using multiple forms n n n n Launching a second form Passing data to and from a form Multiple instances of a form MDI forms Unloading forms Adding Modules to project Variable Scope Variable Naming Conventions 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 12
Course Outline, Week 4 n File I/O Intrinsic VB Statements n Scripting and the File. System. Object n Common Dialogs n n n Adding References and Controls Coding Exercise: A simple text editor n An error logging procedure n 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 13
Course Outline, Week 5 n Graphics n n n n The Picture. Box control The Image control Icons Graphics formats A simple picture viewer Using a picture as a background on a form Drawing shapes Printing 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 14
Course Outline, Week 6 n Dates Caution: A date is not a date n The Gregorian Calendar n n Drag-and-drop Collections Classes 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 15
Course Outline, Week 7 n Database Applications n n n n n ADO – the Active. X Data Object Relational Database basics The Data. Controls The Data Environment Designer The Data Report Designer Developing an Unbound database app The Data. Grid control Dates – Again… SQL Injection 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 16
Course Outline, Week 8 n Advanced topics: n Different types of projects: n n n n Active. X Exe/DLL Active. X Control Add-ins Other Windows API’s Active Server Pages – what are they? Best Practices 1/26/2004 PPCC - Introduction to VB 6 Copyright © 2004, Tore Bostrup 17
- Slides: 17