Introduction to Visual Basic and the VB IDE

Slides:



Advertisements
Similar presentations
Ozone Level ppb (parts per billion)
Advertisements

Classes, Exceptions, Collections, and Scrollable Controls
Problem Solving INFORMATION TECHNOLOGY
CE 311 K Introduction to Computer Methods VB Controls and Events Daene C. McKinney.
An Introduction to Visual Basic Terms & Concepts.
When is Orientated Programming NOT? Mike Fitzpatrick.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Number bonds to 10,
Grade 10 Mixture Problems
Chapter 16 Graphical User Interfaces John Keyser’s Modifications of Slides by Bjarne Stroustrup
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
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.
Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.
1 Pertemuan 02 Visual Basic Environment and Control Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
Chapter 1 Program Design
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Designing an Application in VB 6.0.  Define a Procedure Oriented application and show examples – (procedur.exe)  Define an OOED (Object Oriented/Event.
A Tour of Visual Basic BACS 287. Early History of Basic Beginners All-Purpose Symbolic Instruction Code An “Interpreted” teaching language English-like.
Introduction to Visual Basic Chulantha Kulasekere.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Visual Basic Chapter 1 Mr. Wangler.
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
Microsoft Visual Basic 2005: Reloaded Second Edition
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 8: More About OOP and GUIs.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
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.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Visual Basic Starter Vocabulary. IDE Integrated Development Environment A setting in which programs are written, tested, debugged, etc. You could write.
Programming Examples to Accompany Structure Topic Please use speaker notes for additional information!
Integrated Development Environment (IDE)
IE 423 – Design of Decision Support Systems Visual Studio Introduction to VB.NET programming.
Visual C++ Programming: Concepts and Projects
§Visual - A method used to create GUI applications. §BASIC - Beginner’s All - purpose Symbolic Instruction Code developed by John Kemeny. §VB- Evolved.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
IE 423 – Design of Decision Support Systems Visual Studio Introduction to VB.NET programming.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Class 3 Remote Instruction Computer Math EDU 556 Programming for Instruction Dr. Steve Broskoske This is an audio PowerCast. Make sure your volume is.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
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.
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,
1.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Visual Basic Fundamental Concepts
Visual Basic.NET Windows Programming
Programming Languages
Introduction to Programming and Visual Basic
Chapter 8: More About OOP and GUIs
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
An Introduction to Programming and VB.NET
1. Introduction to Visual Basic
An Introduction to Visual Basic
Event Driven Programming
Computer Programming.
VISUAL BASIC.
Visual Basic..
CIS16 Application Development Programming with Visual Basic
CS285 Introduction - Visual Basic
Basic OOP Concepts and Terms
Presentation transcript:

Introduction to Visual Basic and the VB IDE

Motivation We'd like to be able to write programs that will run on Windows We'd like to use Rapid Application Development methods We’re interested in developing object-oriented, event-driven applications • MyAge, YourGrade, and ThisTest were declared on the previous slides - must be declared first to use them

Basic 10 sum = 0 20 FOR i = 1 to 100 30 sum = sum + i 40 NEXT i 50 avg = sum / 100 60 PRINT "The average is " avg 70 END

RAD Rapid Application Development Easily develop interface prototypes Accelerates delivery of system Better user feedback and testing WYSISYG development

Object-oriented Programming Think in real-world concepts Objects have Properties/attributes (nouns) Actions/events (verbs) Akin to a "record" on steroids!  Groups data and procedural abstraction together Provides for encapsulation & information hiding

Event-Driven Programming Basic and Pseudocode run from top to bottom Main program/algorithm in control Event-driven programs respond to events Usually graphical (forms, buttons, controls) Instructions are executed in response to events Button press, control change, form close, etc.

Anatomy of a VB Program User clicks on the cmdBorder button Form Controls User clicks on the cmdBorder button A Click() event is generated The cmdBorder_Click() method is executed

Event-driven vs. Procedural algorithm CalcAges // create the 4 age variables Age1, Age2, Age3, Age4 isoftype Num // prompt the user and then read in the // numbers print("Please enter 4 ages") read(Age1, Age2, Age3, Age4) // I need a place to store the average avg isoftype Num // calc the average avg <- (Age1 + Age2 + Age3 + Age4) / 4 // display it back to the user print("The average age is ", avg) endalgorithm

VB Program Development Design Create the User Interface (UI) Set form and control properties Code event handlers Save and test/debug your program often! Create executable file Create setup program (for deployment on other computers)

The VB IDE

Design vs. Run Time Design time When you’re building your program Some properties may not be set Run time When you run your program Events are generated from user (buttons, etc.) Opens up more properties of controls

Versions Visual Basic has evolved and will continue to evolve We will be using VB.Net

File Types VBP Visual Basic Project (meta file) VBW Visual Basic Workspace (settings of project) FRM Form (form, control, methods, & attributes) EXE Self-contained executable program SCC Visual SourceSafe file (for versioning/collaboration) others to be announced as needed

MSDN Microsoft Developers Network Your lifeline Your best friend when programming On-line or on CD-Rom http://www.msdn.microsoft.com Mouse over “Libraries” and click “MSDN Libraries” Live it; Love it; Use it!

Summary VB is based on Basic VB is a RAD language VB is an event-driven language VB is an object-oriented language VB comes in different versions and editions Important terms to know/understand: Form, control, method, event, attribute/property IDE, RAD, OOP