Chapter 3 Introducing Visual Basic

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

VISUAL BASIC Visual Basic is derived from the Basic language (Beginner’s All-Purpose Symbolic Instruction Code) Visual Basic uses an event-driven programming.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
The PowerPoint Window MOAC Lesson 1.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Using Macros and Visual Basic for Applications (VBA) with Excel
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
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.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
Introduction to Visual Basic What it is, and a simple program Mike Thelwall University of Wolverhampton, UK.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Visual Basic.net IDE. Integrated Development Environment.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Access Tutorial 10 Automating Tasks with Macros
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
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.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic Chapter 1 Mr. Wangler.
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
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
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.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
 2009 Pearson Education, Inc. All rights reserved Dive Into ® Visual C# 2008 Express.
Integrated Development Environment (IDE)
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Productivity Programs Common Features and Commands.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
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.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
CS130 Project 1 A simple VB application ("project" or program): user enters amount of sales then clicks the "Calculate button", the application displays.
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.
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.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
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.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Basic.NET Windows Programming
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
1. Introduction to Visual Basic
How to design a Windows Forms application
Introduction to the Visual C# 2005 Express Edition IDE
An Introduction to Computers and Visual Basic
Chapter 2 Visual Basic Interface
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
Presentation transcript:

Chapter 3 Introducing Visual Basic 3.1 to 3.8

3.1 to 3.8 3.1 The Visual Basic Programming Language 3.2 A Visual Basic Application 3.3 The Visual Basic IDE 3.4 Adding Objects to a Form 3.5 Object Property Values 3.6 Resizing and Moving an Object 3.7 Saving a Project 3.8 Running a Visual Basic Application

3.1 The Visual Basic Programming Language Based on BASIC which was created in 1960’s by John Kemeny and Thomas Kurtz at Dartmouth University. BASIC – Beginner’s All-Purpose Symbolic Instruction Code

John Kemeny born: May 31, 1926 in Budapest, Hungry died: December 26, 1992 in Hanover, New Hampshire Co-inventor of BASIC. Einstein's mathematical assistant. Leader and innovator in mathematics education. President of Dartmouth College.

Thomas Kurtz BASIC was invented at Dartmouth College in 1964 to give students a simple programming language that was easy-to-learn. It turned out that easy-to-learn and use was also a good idea for faculty members, staff members, and everyone else. There were very few choices for students, teachers, and others who didn't want to dedicate their lives to programming. Our programming language provided the solution and has played an important role in the field ever since. Even with all the new languages introduced since then, BASIC use continues to grow

Bill Gates 1975 Bill Gates and Paul Allen developed a version of BASIC. Founder of Microsoft QuickBasic created by Microsoft. Microsoft combined Rudy and Basic to get Visual Basic.

OOP Object Oriented Programming Uses classes, which are program code and data, to create objects. Objects- can have visual representation such as a dialog box, button etc. Event-driven program – when a program runs due to an object being selected by the user.

3.2 A Visual Basic Application Application – another name for a program. Interface – is what appears on the screen when the application is running. Program Code – is instructions that tells an application’s objects how to behave.

3.3 The Visual Basic IDE IDE – Integrated development environment. Used to create a Visual Basic application The Visual Basic IDE consists of: Menu Bar Tool Bar Tool Box Project Window Project Explorer Window Properties Window Form Layout Window

The Visual Basic IDE

Visual Basic Environment Menu Bar Tool Bar Project Window Project Explorer Window Properties Window Form Layout Window

3.4 Adding Objects to a Form Form – is a container object for other objects

Design Time Objects are added during design time The time during which the applications interface is being created. Label object is used to display information. Command Button object is something a user can click on. Objects are added by clicking and moving your mouse over to the screen and dragging it across the form.

3.5 Object Property Values Properties – defines its appearance, behavior, position, and other attributes. Each type of objects have many different types of properties.

Label Properties Name – identifies an object all names should start with the prefix “lbl”. Caption – changes the text displayed in the label Font – used to change font style, and size. Alignment – Changes the alignment of text in a label’s caption (left & right justify and center)

Command Button Properties Name – identifies the object. Prefix “cmd” Caption – Changes the text displayed in the command button.

Form Properties Name – identifies an object. Prefix “frm” Caption – changes the text displayed in the title bar.

Programming Style When naming an object, it should start with the appropriate prefix and then be descriptive of the object’s purpose.

3.6 Resizing and Moving Objects Selecting an object is done by simply clicking on it. Resizing by using the drag handle Marquee Selection – Selecting the pointer control and create a dash box around several objects at one time.

3.7 Saving a Project File menu and select the “Save Project” command or clicking on disk icon shortcut key. First saved – both form and project must be given descriptive names. Save the form using the same name as its Name Property and then save the project using a descriptive name of the application.

3.8 Running a Visual Basic Application F5 – start command Run Menu and select run Run icon on the toolbar

Run Time Refers to the time during which application is being executed. A VB program can be run at any time of its development.

End Command Run Menu – select “End” command. Click the End icon on the Tool Bar.