1 Introduction to Visual Basic Dr Mohd Nabil Almunawar MS 3403 Advanced Computing.

Slides:



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

VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Creating an OOED Application
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.
Introducing More Controls Text boxCheck box Option button Command button frame image.
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
Introduction to Computing Dr. Nadeem A Khan. Lecture 11.
Introduction to computers & Visual Basic School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Monday 1/27/2003)
Introduction to Visual Basic What it is, and a simple program Mike Thelwall University of Wolverhampton, UK.
Developing Software Applications Bob Hobbs
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Visual Basic.net IDE. Integrated Development Environment.
Visual Basic Chapter 1 Mr. Wangler.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
An Introduction to Visual Basic
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
PROBLEM SOLVING The first step in writing instructions to carry out a task is to determine what the output should be (What should the task produce?)
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Enhancing the Graphical User Interface Multiple Forms, Controls, and Menus.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Visual Basic Projects Project Structure and VB’s Programming Tools chapter TWO.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Chapter 3 Introducing Visual Basic
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
§Visual - A method used to create GUI applications. §BASIC - Beginner’s All - purpose Symbolic Instruction Code developed by John Kemeny. §VB- Evolved.
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.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
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.
Integrated Development Environment Visual Basic IDE Slide 2 of 10 Topic & Structure of the lesson Introduction Integrated Development Environment Tool.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Graphical User Interfaces Tonga Institute of Higher Education.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
INFORMATION SYSTEM – SOFTWARE TOPIC: GRAPHICAL USER INTERFACE.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Visual Basic A Quick Tutorial VB Review for ACS 367.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
Introduction to Computing
An Introduction to Computers and Visual Basic
Introduction to Computing
1. Introduction to Visual Basic
An Introduction to Computers and Visual Basic
An Introduction to Visual Basic
VB 6.0.
Visual Basic Project Development Environment
Visual Basic.
Chapter 6 - Visual Basic Schneider
Visual Basic Project Development Environment
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
An Introduction to Computers and Visual Basic
Understanding the Integrated Development Environment
Chapter 4 Enhancing the Graphical User Interface
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

1 Introduction to Visual Basic Dr Mohd Nabil Almunawar MS 3403 Advanced Computing

2 Learning Objectives  Describe visual and event-driven programming  Explain concepts of objects, properties, and methods  List and describe the three steps for writing Visual Basic project  Identify the elements in the Visual Basic environment

3 High-Level Language  Procedural languages : the main concern is processes. The program specifies the exact sequence of all operations through sub-programs called procedures or functions.  Object-oriented languages : the main concern is objects which are the integration of processes and data.  Visual languages: can be any language (procedural or object-oriented) equipped with visual tools to design and create programs.  Event-driven programming : Each event (mouse, keyboard, any input device) will trigger a procedure/function.

4 The Object Model  An object is an integration of data (properties) and operations Object’s name Properties (data) Operations

5  In object model (object-oriented), everything is an object.  Properties are attributes of an object such as name, colour, size, caption, location, etc.  Operations are processes or actions provided by an object. Operations can access or modify properties. Examples: move, print, resize, display, ChangeColour, etc.  A method is an implementation of an operation.  If a message is sent to an object then a corresponding method will be activated.

6 HelloForm BackColour Caption Font... Move Resize Show... BoardLabel Caption ForeColour FontSize... Display ChangeFontSize... Display BoardLabel.Display(“Hello World”)

7 Writing Visual Basic Projects Design the user interface draw sketch of user interface screen. Consult with user about this interface Plan the properties For each object, write down the properties that you plan to set or change Plan Programming Plan the Basic Code use flow chart or pseudocode to describe processes/actions/events

8 Visual Basic Environment Main VB window Toolbox Form windowMenu bar Toolbar Project explorer window Properties window Properties help Pane Form layout window

9 VB Toolbox Pointer Label Frame Check box Combo box Horizontal scroll bar Timer Folder list box Shape Image Picture box Text box Command button Option button List box Vertical scroll bar Drive list box File list box Line Data

10 VB Object Naming Convention Object class Form Command Button Text Box Label Option button Check box Frame Horizontal scroll bar Vertical scroll bar Image Picture box Combo box List box Shape Prefix frm cmd txt lbl opt chk fra hsb vsb img pic cbo lst shp Example frmDataEntry cmdExit txtPaymentAmount lblTotal optBold chkPrintSummary fraSelection hsbRate vsbTemperature imgLogo picLandScape cboBookList lstIngredients shpBox

11 Exercise  Using the VB programming guideline (writing VB project), design and implement the following simple program.  Write a project that display a message taken from an input box in a label. You have to provide the following functions:  Display the message and at the same time clear the input box  Increase the font size of the message  Decrease the font size of the message  Exit from the program