1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Materials & Prerequisites Course Outline Background Information.

Slides:



Advertisements
Similar presentations
An Introduction to Visual Basic Terms & Concepts.
Advertisements

Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
TM Getting Started with the Revit API Kristian Parsons Westfield Design & Construction.
By: Md Rezaul Huda Reza Lecturer:  Md Rezaul Huda Reza Former Lecturer of  Bexley College under University.
DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
4/20/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Week 8.
3/9/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Week 2.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Joshi R.G. Dept. of Computer Sci. YMA.
BIL528 – Bilgisayar Programlama II Introduction 1.
Advanced Java New York University School of Continuing and Professional Studies.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Tutorial 11 Using and Writing Visual Basic for Applications Code
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
An Introduction to Visual Basic
Advanced PI Calculation Engine Makes Complex PI Calculations Easy! Use of EDICTvb for Multi-Plant Advanced PI Calculations Dane OverfieldEXELE Information.
IT 211 Project Integration and Deployment Lab #11.
IE 411/511: Visual Programming for Industrial Applications
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Introduction to VB6 PPCC Course Winter 2004 Week 0 – Background Information Copyright ©2004, Tore Bostrup.
Using Visual Basic for Applications (VBA) – Project 8.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
Introduction 1. CIS 400 Programming for the Windows Environment 2.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Chapter Two Creating a First Project in Visual Basic.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
Week 1 Lecture 1 Slide 1 CP2028 Visual Basic Programming 2 “The VB Team” Copyright © University of Wolverhampton CP2028 Visual Basic Programming 2 v Week.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
DEPARTMENT OF COMPUTER SCIENCE Introduction to Visual Basic BCA 3 RD YR PRESENTED BY HASHIR UN NABI Dated:01/07/
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
BIM313 – Advanced Programming Techniques Course Information 1.
Chapter 1 Introduction to Visual Basic
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
3.01 Apply Controls Associated With Visual Studio Form
To Join the Telephone Conference . . .
Innovative Technology Solutions
1. Introduction to Visual Basic
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
3.01 Apply Controls Associated With Visual Studio Form
Microsoft Access Illustrated
An Introduction to Visual Basic
VB 6.0.
VISUAL BASIC.
Visual Basic.
CIS16 Application Development Programming with Visual Basic
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
Chapter 4 Enhancing the Graphical User Interface
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Materials & Prerequisites Course Outline Background Information

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 2 Materials & Prerequisites Book: Book: Sam’s Teach Yourself Visual Basic in 24 Hours Sam’s Teach Yourself Visual Basic in 24 Hours By Greg Perry with Sanjaya Hettihewa By Greg Perry with Sanjaya Hettihewa ISBN ISBN copies at Barnes & Noble (Harbison) on 1/27/ copies at Barnes & Noble (Harbison) on 1/27/2004

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 3 Materials & Prerequisites Software: Software: Visual Basic 6.0 Visual Basic 6.0 A Working Model in included with the book A Working Model in included with the book Course will target the VB 6 Professional Edition Course will target the VB 6 Professional Edition Check with MS for free 90 day trial edition Check with MS for free 90 day trial edition Participant CD Participant CD VB 6 Service Pack 5 VB 6 Service Pack Microsoft Jet 4.0 Service Pack 8 Microsoft Jet 4.0 Service Pack B61394B1E0&freetext=&DisplayLang=en Get the one that matches your system!!! 30B61394B1E0&freetext=&DisplayLang=en Get the one that matches your system!!! 30B61394B1E0&freetext=&DisplayLang=en 30B61394B1E0&freetext=&DisplayLang=en Microsoft Data Access Components (MDAC) downloads can be found from: Microsoft Data Access Components (MDAC) downloads can be found from: Microsoft Data Access Components (MDAC) 2.7 SP1 Refresh Microsoft Data Access Components (MDAC) 2.7 SP1 Refresh ae36c570ade8&languageid=f49e a67-3cffcb0c2524&displaylang=en ae36c570ade8&languageid=f49e a67-3cffcb0c2524&displaylang=en ae36c570ade8&languageid=f49e a67-3cffcb0c2524&displaylang=en ae36c570ade8&languageid=f49e a67-3cffcb0c2524&displaylang=en MDAC Buffer Overrun Secrity Patch MS MDAC Buffer Overrun Secrity Patch MS asp asp asp asp

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 4 Materials & Prerequisites Software, Continued: Software, Continued: MSDN Library (October 2001 recommended) MSDN Library (October 2001 recommended) This contains the latest Online help for VB6 This contains the latest Online help for VB6 Included with VB6 Professional Edition Included with VB6 Professional Edition

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 5 Materials & Software Recommended – not required: Recommended – not required: MS Office Professional (Microsoft Access) MS Office Professional (Microsoft Access) Version 2000, XP, or 2003 should be OK 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. Version 97 can be used, but beware of some minor differences in project setup and files required. Icon Editor Icon Editor 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. 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 Graphics editor 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. 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.

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 6 Materials & Software Bring (blank) Media for copying your work Bring (blank) Media for copying your work Floppy Disks Floppy Disks USB drives USB drives Watch for cheap keychain USB drives from local stores (OfficeMax have had them as low as $9.99 after rebates, I didn’t see any specials this week). Watch for cheap keychain USB drives from local stores (OfficeMax have had them as low as $9.99 after rebates, I didn’t see any specials this week). NOT CD-R’s NOT CD-R’s The computers do not have CD burners. The computers do not have CD burners.

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 7 Course Outline, Week 0 Background Information Background Information Computer Science Basics Computer Science Basics Binary Numbers Binary Numbers Data Types Data Types Instructions and Data Instructions and Data Compilers and Interpreters Compilers and Interpreters Variables and Assignments Variables and Assignments Object Orientation Basics Object Orientation Basics What is an object What is an object Visual Basic built-in “Objects” Visual Basic built-in “Objects” Windows Environment Basics Windows Environment Basics Message-based and Event-Driven Architecture Message-based and Event-Driven Architecture The different VB’s (VB, VBA, VBScript) The different VB’s (VB, VBA, VBScript)

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 8 Course Outline, Week 1 Getting Started with VB6 Getting Started with VB6 Installation & Setup of VB6 for development Installation & Setup of VB6 for development Launching VB6 Launching VB6 VB6 Settings VB6 Settings The VB6 IDE The VB6 IDE

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 9 Course Outline, Week 1 Your first app (Hello World) Your first app (Hello World) Running the application Running the application Calculating an approximation of PI Calculating an approximation of PI Very simple – use 22/7, but use controls for input/output Very simple – use 22/7, but use controls for input/output Designing a user interface Designing a user interface

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 10 Course Outline, Week 1 Adding code to your application Adding code to your application Visual Basic Statements Visual Basic Statements Simple Variable and Constant Declarations Simple Variable and Constant Declarations Assignment Statements and Expressions Assignment Statements and Expressions If … Then … Else … End If If … Then … Else … End If Accessing controls on the form Accessing controls on the form Control Properties, Methods, and Events Control Properties, Methods, and Events Simple controls: Simple controls: TextBox, Label, CommandButton, Timer TextBox, Label, CommandButton, Timer ListBox and ComboBox ListBox and ComboBox File, Directory, and Drive – example of control interaction File, Directory, and Drive – example of control interaction

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 11 Course Outline, Week 2 Loops Loops Select Case Select Case Operator Precedence Operator Precedence Arrays Arrays Data Type Conversion Data Type Conversion Variable Naming Conventions Variable Naming Conventions Object Reference Variables Object Reference Variables Object Instantiation Object Instantiation String Manipulation String Manipulation More controls (Option Button, CheckBox, Frame) More controls (Option Button, CheckBox, Frame) Control Arrays Control Arrays

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 12 Course Outline, Week 3 Debugging Debugging Error Handling Error Handling Comments Comments The App object The App object Procedures and Parameters Procedures and Parameters Using multiple forms Using multiple forms Launching a second form Launching a second form Passing data to and from a form Passing data to and from a form Multiple instances of a form Multiple instances of a form MDI forms MDI forms Unloading forms Unloading forms Adding Modules to project Adding Modules to project Variable Scope Variable Scope Variable Naming Conventions Variable Naming Conventions

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 13 Course Outline, Week 4 File I/O File I/O Intrinsic VB Statements Intrinsic VB Statements Scripting and the FileSystemObject Scripting and the FileSystemObject Common Dialogs Common Dialogs Adding References and Controls Adding References and Controls Coding Exercise: Coding Exercise: A simple text editor A simple text editor An error logging procedure An error logging procedure

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 14 Course Outline, Week 5 Graphics Graphics The PictureBox control The PictureBox control The Image control The Image control Icons Icons Graphics formats Graphics formats A simple picture viewer A simple picture viewer Using a picture as a background on a form Using a picture as a background on a form Drawing shapes Drawing shapes Printing Printing

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 15 Course Outline, Week 6 Dates Dates Caution: A date is not a date is not a date Caution: A date is not a date is not a date The Gregorian Calendar The Gregorian Calendar Drag-and-drop Drag-and-drop Collections Collections Classes Classes

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 16 Course Outline, Week 7 Database Applications Database Applications ADO – the ActiveX Data Object ADO – the ActiveX Data Object Relational Database basics Relational Database basics The DataControls The DataControls The Data Environment Designer The Data Environment Designer The Data Report Designer The Data Report Designer Developing an Unbound database app Developing an Unbound database app The DataGrid control The DataGrid control Dates – Again… Dates – Again… SQL Injection SQL Injection

1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore BostrupPage 17 Course Outline, Week 8 Advanced topics: Advanced topics: Different types of projects: Different types of projects: ActiveX Exe/DLL ActiveX Exe/DLL ActiveX Control ActiveX Control Add-ins Add-ins Other Other Windows API’s Windows API’s Active Server Pages – what are they? Active Server Pages – what are they? Best Practices Best Practices