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,

Slides:



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

Information System Design Lab 5&6. User Interface Design.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Using VB with MS Applications R. Juhl, Delta College.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
1 Pertemuan 02 Visual Basic Environment and Control Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Objectives Machine language vs.. High-level language Procedure-oriented, object-oriented, and event- driven languages Background of Visual Basic VB Integrated.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
1/26/2004 PPCC - Introduction to VB6 Copyright ©2004, Tore Bostrup 1 Introduction to VB6 Materials & Prerequisites Course Outline Background Information.
Introduction to Visual Basic Chulantha Kulasekere.
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
Getting Started Example ICS2O curriculum
Sep-05 Slide:1 ActiveX Controls in VB ActiveX Controls in VB6.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Not in Text CP212 Winter No VBA Required “Regular” Programming traditional programming is sequential in nature o one command executed after another.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Unit 20: Event Driven Programming
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Microsoft Visual Basic 2005: Reloaded Second Edition
1 Visual Basic for Applications (VBA) for Excel Prof. Yitzchak Rosenthal.
An Introduction to Visual Basic
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
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.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Outline Software and Programming Program Structure Tools for Designing Software Programming Languages Introduction to Visual Basic (VBA)
1 Course Title: Visual Basic Programming Topic: Introduction to programming Languages (Visual basic 6.0) Lecturer: Mahamud Ahmed Jimale, BsIT, MsCs, CCNA,
Introduction to Windows Programming
Fundamentals of GUI Programming. Objectives: At the end of the session, you should be able to: describe the guidelines that are used for creating user-friendly.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
Chapter Two Creating a First Project in Visual Basic.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Applications Development
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
CS 101 Test 2 Study Guide Acronyms RAD - Rapid Application Development IDE - Integrated Development Environment GUI - Graphical User Interface VB - Visual.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
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.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Visual Basic Fundamental Concepts
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
Unit 20: Event Driven Programming
1. Introduction to Visual Basic
Introduction to VB6 Week 1 3/2/2004 PPCC - Introduction to VB6
An Introduction to Visual Basic
VISUAL BASIC.
Visual Basic..
CIS16 Application Development Programming with Visual Basic
CS285 Introduction - Visual Basic
Chapter 15: GUI Applications & Event-Driven Programming
Visual C# - GUI and controls - 1
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

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, controls, a calculator program 2 Core language 2 –Conditional statements, exception handling, loops, arrays, debugging 3 Core language 3 –Functions, sub-routines, parameter passing, modules, scope, lifetime 4 Controls –scrollbar, radio buttons, checkboxes, listboxes, timers, control arrays 5 Graphics –primitives and image files 6 Forms –Forms MDI, menus 7 Files and databases –adding controls, using data files, using databases 8 Deployment

Hello World in VB Start VB New Project – Standard.exe Click the Button control on the ToolBox and drag in the form Double click the new button to invoke the code editor Enter code: Click the Run button Private Sub Command1_Click() MsgBox ("Hello world") End Sub Exercise – try this out

What is Visual Basic? Kemeny and Kurtz – Dartmouth College 1964 For students – simple interpreted Many versions since MS VB versions – more power not so simple VBScript VBA.NET framework RAD especially of user interface

A very early version

VB is not.. Vendor independent Platform independent Based on a constant language definition Separated definition and IDE implementation Well documented (IMO) suitable for very large projects which must be maintained over a long period of time

VB is.. easy to use suitable for RAD very marketable

Building an application - steps Commercial – data driven – waterfall model – project management Science/engineering – underlying data and physical model, algorithms, testing In VB – RAD – focus on user interface prototyping and review.

Building an application - forms VB uses 'form' to mean Window Info on form stored in a.frm file VB system draws form based on that info Forms can be treated like classes in OOP - later

Building an application - controls Buttons, text boxes, labels, check boxes.. VB 'control' = user interface widget Some invisible – timer Controls have properties eg background color Three kinds – –standard –non-standard MS controls (common dialog, tab) and 3 rd party –ActiveX controls written in-house

Building an application - modularity Spaghetti programming, structured programming, OOP = increasing modularity In VB application constructed from modules = files in project- Form modules BASIC modules Class modules Private and public control interaction between modules

Building an application - objects Some OOP in VB – not pure OOP objects = things eg a form class = type of object eg a form design property = data value associated with object method = something the object can do

Building an application – example of OOP Dim f As Form2 Set f = New Form2 f.Show f.BackColor = RGB(255, 0, 0) Form2 is a class f is an object – an instance of class Form2 the Form2 class has a method called show It has a property called BackColor

Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines what happens In GUI, the user triggers what application does (mostly) Event examples are key press, mouse move, timer timeouts Correspond to native Windows Messages (next slide) Event handler = a subroutine which will execute when that event happens

Windows Messages – Spy++