Standard Grade Programming using VB 1 Programming 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

Section 1 Introduction National 4/5 VB Course. What you should know after this lesson What is a program Who writes programs Why is sequence important.
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.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
AA high level programming language. IIt is created by Microsoft. UUses a graphical environment called the Integrated Development Environment (IDE).
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 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 Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
Compunet Corporation Programming with Visual Studio.NET GUI Week 13 Tariq Aziz and Kevin Jones.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Mark Dixon, SoCCE SOFT 131Page 1 02 – Software Development Lifecycle, & User Interface Design.
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.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
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.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Visual Basic Chapter 1 Mr. Wangler.
Introduction to Visual Basic (VB)
05/09/ Introducing Visual Basic Sequence 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.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
PowerPoint for High School A demonstration of how to construct an effective presentation for any class By John Smith ID # Each page will have instructions.
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.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Section 2 Variables National 4/5 Scratch Course. What you should know after this lesson What a variable is Where variables are stored How to get data.
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.
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.
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.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
BIL528 – Bilgisayar Programlama II Introduction 1.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter Two Creating a First Project in Visual Basic.
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
I Power Higher Computing Software Development Development Languages and Environments.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
VAT Calculator program Controls Properties Code Results.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
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.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
2c – Textboxes and Buttons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic A Quick Tutorial VB Review for ACS 367.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Visual Basic.NET Windows Programming
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Microsoft Office Illustrated
Standard Controls.
Please use speaker notes for additional information!
Chapter 2 Visual Basic Interface
CIS16 Application Development Programming with Visual Basic
Building an Application in the Visual Basic .NET Environment
European Computer Driving Licence
Introduction to Visual Basic 2010
GUI Programming in Visual Studio .NET
Photo Story 3 for Windows
Presentation transcript:

Standard Grade Programming using VB 1 Programming Visual Basic

Standard Grade Programming using VB 2 Programming This is the final evidence you require to gather for you folio. You need 2 programs at the best level you can. Aim high as a good mark for Practical Abilities can improve your overall grade!

Standard Grade Programming using VB 3 Lesson 1: Learning Intentions To understand that VB is a programming language To understand that a program is a list of instructions To understand that a VB project is made up of a project, a form, and controls. To understand how to run a VB program To understand how to stop a VB program running

Standard Grade Programming using VB 4 Visual Basic VB is a computer programming language, a High Level Language (HLL). A program is a list of instructions that cause a computer to perform a useful task, such as playing a game or writing a letter. A program can be quite small— something designed to add two numbers together, or it can be a large application, such as Microsoft Word. Staple the VB programming environment into a page in your jotter – learn it! Run the Sample project COPY!

Standard Grade Programming using VB 5 Lesson 2: Learning Intentions Creating and using a command button Creating and using a picture box Changing properties of a control using the properties window Writing a simple piece of VB code Saving a project in its own folder

Standard Grade Programming using VB 6 The Label Control A label is a control that displays information the user cannot edit. It is often used to provide titles on the screen for other controls or to explain what the program does. The label always has a 3 letter prefix of lbl followed by the name of the label eg a label to display a heading may have the name: lblHeading COPY!

Standard Grade Programming using VB 7 The Label Control (cont’d) Not the use of the prefix in small letters, followed by the name of the label beginning with a capital letter. Always write names of controls in this way. lblHeading COPY! Open a new project Name its form as frmName and give it the caption Name Create a label, name the label lblName Change caption to your own name Alter the alignment property Alter BackColor/ForeColour properties

Standard Grade Programming using VB 8 Lesson 3/4: Learning Intentions The command button

Standard Grade Programming using VB 9 The Command Button The command button is a Control placed on a form that when clicked runs the code behind that button. The button could cause the code to start, pause, or end an action.

Standard Grade Programming using VB 10 The Command Button Problem Statement We are going to write a program to make the computer beep. When the beep command button is pressed the computer should beep.

Standard Grade Programming using VB 11 The Command Button Design of HCI frmBeep cmdBeep Both the command button and the form have the caption Beep

Standard Grade Programming using VB 12 The Command Button Coding This program only needs one line of code to make it beep. The code is written between the Private Sub and End Sub lines of code eg Private Sub cmdBeep_click() Beep End Sub All commands inside the Private Sub and End Sub lines are indented! Now go to your computer and create this program. Once you have finished it complete the task on page 25 of the VB Pupil Booklet 1. (ie, adding an End and Exit button)

Standard Grade Programming using VB 13 Lesson 5: Learning Intentions Setting Properties in Run Mode

Standard Grade Programming using VB 14 Setting Properties in Run Mode When a program is running it is possible to change the properties of a label, picture box or form. To do this we need to use a line of VB programming code. The code must be in the form:- ControlName.PropertyName = PropertyValue EgfrmSample.BackColor = vbRed This code changes the background colour of form frmSample to red COPY!

Standard Grade Programming using VB 15 Setting Properties in Run Mode Eg if we wanted to change the background colour of the form called frmSample to red then the code would be: frmSample.BackColor = VBRed Remember: it must take the form:- ControlName.PropertyName = PropertyValue Write the line of code that would change the background colour of the label lblHeading to green: Now load the Beep program and do the task on page 24 of the booklet. Change background colour of Form to Blue and forecolour (text colour) to red.

Standard Grade Programming using VB 16 Setting Properties in Run Mode Eg