SlideServe
Menu
Préférences
© SlideServe · v2026

Visual Basic 5.0 Introduction Guide

vinaya avatar
16 diapositives · 294 Views · Oct 23, 2014

Learn about key concepts in Visual Basic 5.0 programming, including forms, controls, properties, methods, events, statements, and instructions. Develop a solid understanding of the VB environment and coding essentials.

Visual Basic 5.0 Introduction Guide - slide 1
01 / 16Visual Basic 5.0 Introduction Guide
1 / 17

Télécharger la présentation

Visual Basic 5.0 Introduction Guide
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. VISUAL BASIC 5.0 INTRODUCTION Version Date: August 31, 1998

  2. VB General Information • VB is an event-driven (-oriented) language • A “Form” is a container for other forms and controls. Each form is an object (instance) and also a window. • A “Control” is an object that is attached to a form. Controls include: text box, check box, option button, command button, label, etc. • The Toolbox contains objects to be used as necessary to satisfy your requirements.

  3. Form • Control • Toolbox • Properties

  4. Properties, Methods, Events, Statements, and Instructions • A PROPERTY is a named attribute of an object (a noun). • Properties change an object’s appearance or behavior • Syntax: object.property = value • Examples: • cmdUpdateButton.ForeColor = vbBlue • cmdUpdateButton.FontBold = True

  5. Properties, Methods, Events, Statements, and Instructions • A METHOD is a RESERVED KEYWORD that acts on a particular object. Methods are built into the VB language. • Syntax: object.method • Examples: frmSignon.Close frm.Signon.Move .Show .Arrange .Clear etc….

  6. Properties, Methods, Events, Statements, and Instructions • An EVENT is an action recognized by an object • A typical event is a “key press” or “mouse click” • Properties can be “set”, methods can be “specified”, and an event typically requires a set of programmed instructions. • The VB programmer writes coded instructions to respond to events that he/she determines should be assigned to a form or a control.

  7. Properties, Methods, Events, Statements, and Instructions • A STATEMENT is a RESERVED WORD that causes the VB program or the computer’s operating system (Win95/NT) to do something. • Syntax & Example:END and KILL • No reference to an object is required

  8. Properties, Methods, Events, Statements, and Instructions • An INSTRUCTION is a line of VB code in a VB application. • Instructions contain the names of constants, variables, functions, properties, methods, and statements • Example ----->

  9. A Suggested Visual Programming Development Methodology 1. Define the problem to be solved - OO Model 2. Determine file/database structure(s) 3. Determine desired conceptual outputs (screen and hard copy) 4. Determine required inputs 5. Create file/database structure(s) with sample data 6. Design and construct prototype input FORMS • VB - a) create the interface, b) set properties, c) write code 7. Test, test, test; repeat above as necessary 8. Prepare a script for your group’s presentation

  10. VB 5 Development Environment

  11. VB 5 Development Environment • Forms • Controls • Focus • Reference • VB Samples - VB5 and others

  12. VB 5 Development Environment • Visual Basic Project file types: • Project file - projectName.vbp • Form file(s) - formname.frm (frmXxxx.frm) • frmDocument.frm frmMain.frm • Module file(s) - Modulename.bas (Module1.bas) • There may be additional “data” files used by your project (examples: *.bmp, *.ico, *.mdb, etc…)

  13. Be SURE to include YOUR NAME on the FORM!

  14. Form Image • Code • Current Project