CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
Advertisements

An Introduction to Visual Basic Terms & Concepts.
Information System Design Lab 5&6. User Interface Design.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
© by Pearson Education, Inc. All Rights Reserved.
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.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
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.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
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.
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)
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
Illuminating Computer Science CCIT 4-6Sep
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Chapter 1 Introduction to Visual Basic Programming and Applications 1 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta.
Microsoft Visual Basic 2005: Reloaded Second Edition
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
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.
Introduction to the Visual Studio.NET IDE (LAB 1 )
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.
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.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
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.
1.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
1 Introduction to Visual Basic Dr Mohd Nabil Almunawar MS 3403 Advanced Computing.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
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.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., Programs, Business Applications, and Visual Basic chapter ONE.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
Introduction to Computing
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
Introduction to Computing
1. Introduction to Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
An Introduction to Computers and Visual Basic
An Introduction to Visual Basic
Visual Basic.
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
An Introduction to Computers and Visual Basic
Chapter 4 Enhancing the Graphical User Interface
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7

CC111 Lec7 : Visual Basic 2 Objectives The student should be familiar with the Visual Basic Environment. The student should be able to build a simple Visual Basic Application.

CC111 Lec7 : Visual Basic 3 What is Visual Basic? High Level 4th Generation Programming Language Object and Event Driven Visual - Windows Based Integrated Development Environment or IDE

CC111 Lec7 : Visual Basic 4 What is VB Used For? Most Popular Programming Language Stand alone programs Customized specialized Applications –E- Commerce Web based shopping forms and inquiries User friendly Interface to applications

CC111 Lec7 : Visual Basic 5  Used by a computer equipment retail outlet to record data regarding customer orders. Example Order Entry Screen Allows user to use a mouse to click on boxes for text entry. Also enables user to click on buttons to initiate processing steps.

CC111 Lec7 : Visual Basic 6 Generations of Computer Languages 1st - Machine language nd - Procedure-oriented languages –FORTRAN for scientists and engineers –COBOL for business applications –C for UNIX operating systems 3rd - Object-oriented languages 4th - Event-driven languages. Example:VB 5th - Natural languages

CC111 Lec7 : Visual Basic 7 Compiler Vs Interpreter Higher Languages are translated to Machine Language by: –Interpreter Translates instructions to machine code line-by-line. BASIC, Quick Basic, Visual Basic –Compiler Translates the entire program to machine code before running it. Fortran, C, C++, Visual Basic is also a compiler

CC111 Lec7 : Visual Basic 8 What are the Objects in VB? Pre-programmed Code for: –Command Buttons –Labels –Pictures –Text Boxes Have both data and procedures wrapped together

CC111 Lec7 : Visual Basic 9 What is the Integrated Development Environment (IDE)?

CC111 Lec7 : Visual Basic 10 Visual Basic Environment GUI (Graphical User Interface) - forms and windows that the user sees Property - a characteristic or attribute of an object such as color and size Event - a user action such as clicking a button Code Editor window - editor specially designed to help you when writing code

CC111 Lec7 : Visual Basic 11  The Form Designer Window show the GUI application  The Toolbox is used to drag and drop components to your forms  The Properties window show the value od of the properties of each selected component(Object) Visual Studio 2008 IDE Environment

CC111 Lec7 : Visual Basic 12 Visual Basic Environment Components of the VB design environment (Form view)

CC111 Lec7 : Visual Basic 13 Visual Basic Environment Components of the VB design environment (Code view)

CC111 Lec7 : Visual Basic 14 The Code Editor Window Help window Error message box Syntax error in Red

CC111 Lec7 : Visual Basic 15 Properties Window Used to set how a control looks and behaves Holds its default values

CC111 Lec7 : Visual Basic 16 Control Toolbox Pointer Label Group Frame Check Box Combo Box Horizontal Scroll Bar Timer Directory List Box Shape Image OLE Picture Text Box Command Button Option/Radio Button List Box Vertical Scroll Bar Drive List Box File List Box Line Data Control

CC111 Lec7 : Visual Basic 17 Building Your First Application There are three primary steps in building a Visual Project: 1.Place (or draw) controls on the form. 2.Assign properties to the controls. 3.Write event procedures for the controls. WelcomeApplication.exe

CC111 Lec7 : Visual Basic 18 Starting Visual Basic

CC111 Lec7 : Visual Basic 19 Starting Visual Studio 2008

CC111 Lec7 : Visual Basic 20 Creating New Project

CC111 Lec7 : Visual Basic 21 Project initial interface

CC111 Lec7 : Visual Basic 22 Step1 :Draw your controls

CC111 Lec7 : Visual Basic 23 Step 2 : Assign Properties

CC111 Lec7 : Visual Basic 24 Changing the Form Title

CC111 Lec7 : Visual Basic 25 Changing the Form Title……………

CC111 Lec7 : Visual Basic 26 Edit Image Properties

CC111 Lec7 : Visual Basic 27 Browse for an Image

CC111 Lec7 : Visual Basic 28 Edit the SizeMode property of the PictureBox

CC111 Lec7 : Visual Basic 29 Edit the Text Property of Label1 The Text Property is changed to “ “

CC111 Lec7 : Visual Basic 30 Accessing components properties from code Label1 PictureBox1 Button1 Each Component has a name, you access its property by: componentName.PropertyName

CC111 Lec7 : Visual Basic 31 Step 3:Writing the Code (Events) Double click on the Button then write your code

CC111 Lec7 : Visual Basic 32 Writing the Code (Events)

CC111 Lec7 : Visual Basic 33 Running the Application