Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Size: px
Start display at page:

Download "Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)"

Transcription

1 Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual Basic In Microsoft Windows, click Start button, point to programmes and Microsoft Visual Basic Click Visual Basic 6.0 Programme Icon Click Open to accept the default project, a standard 32-bit Visual Basic application References: Michael Halvorson, Microsoft Visual Basic 6.0 Professional Step by Step Microsoft Press, 1998 Any Other VB Books will be useful 1 2 The Visual Basic Programming Environment The User Interface Form (I/II) A form is a window for creating the user interface of a programme Form Window Project Window Properties window Form Programme User Interface Project Container Window Form Layout window A result screen after press Display Tool bar Menu bar 3 4 The User Interface Form (II/II) The Tool Box (I/II) A form can contain Menus Buttons List Boxes Scroll Bars. The default form: Form1 A standard grid to line up elements of programmes user interface Adjust the size of form using the mouse Add additional forms using Add Form command on the Project menu The run-time position of the user interface is controlled by the Form Layout window The elements of a programme s user interface is added to a form by using the tools or controls in the tool box ToolBox contains controls you can use to add to a user interface Artwork, Labels, Buttons, List boxes, Scroll bars, menus, and geometric shapes. Each control added to a form becomes an Object, or programmable user interface element. These elements will be visible to the user of the program when the programme runs and will operate like the standard objects in any Windows-based application 5 6 1

2 The Tool Box (II/II) The tool box also contains controls that can be used to create objects that perform special behind the scenes operations in a VB programme. The Properties Window The properties window lets you change the characteristics, or property settings, of the user interface elements on a form These objects are not visible to the user when the programme is running, these include objects for Manipulating information in databases Working with Windows-based applications The Project Window Getting Help A VB programme is made up of several files that are assembled together or compiled when a programme is complete. The project window lists all the files used in the programming process and provide access to them via two special buttons: View Code and View Object The project file that maintains the list of all the supporting files in a programming project is called the VB project (.vbp) Project window displays the components of the project Exiting Visual Basic Save any changes you have made On the File menu, click the Exit command 9 10 Session 2 Task, Specification, Algorithm Create the user interface for a new programme Set the properties for each object Write programme code Save and run the programme Build an executable file Programming Step DCreate the user interface Lucky Seven: The programme should perform the following actions Provide a user interface that has : Spin and End buttons 3 spinner windows, a descriptive label, a winner display window Pick three random number and display them when the user click Spin DSet the properties Display a stack of coins and beep if the number 7 appears in one of the spinner windows DWrite the programme code Terminate when the End button is clicked

3 Creating the User Interface (I/IV) Setting the Properties (II/IV) 1 On the file menu, click the New Project command 2 Enlarge the Form window until the scroll bar appear in the Project Window as shown on the right 3 Click the CommandButton control in the toolbox, then place the mouse pointer over the form 4 Move the mouse pointer close to the upper-left corner of the form, hold down the left mouse button, then drag down and to the right. Stop dragging and release the mouse button until you have a button similar to the one shown here on the right 5 Add a second CommandButton 6 Add the number Labels 7 Add an image Command button Label Control Image Control Setting the CommandButton Properties 1 Click the first command button on the form 2 Double click the Properties window title bar (the Properties window is enlarged to full size) 3 Double click the Caption property in the left column, and change the current Caption Command1 to Spin 4 Open the object drop-down list box at the top of the Properties window, a list of interface objects appears 5 Click Command2 and change its Caption to End Setting the Properties (III/IV) Setting the Properties (IV/IV) Setting the Number Labels Properties Setting the Descriptive Labels Properties 1 Click the first number label and then holding down the Shift key click the second and third number labels. 1 Click the fourth label object on the form 2 Click the Alignment property, then the drop-down list box to align the buttons to Centre 2 Change the caption to Lucky Seven 3 Change the Fond property 3 Click the BorderStyle property and change it to FixedSingle 4 Double-click the Font property and change the Font and Style (e.g., Times New Roman, Bold, and 24 point size) 4 Double-click the ForeColor property and change the colour of your object The System tab shows the current colours used for the user interface elements in your system, the palette shows all the available colours 5 Delete the captions in the 1st, 2nd and 3rd number labels Setting the Properties Setting the Image Box Properties Use the Code Window 1 Double click the End command button on the form, the code window appears 1 Click the image box object on the form 2 Click the Stretch property and set it to True 3 Double-click the Picture property and load a picture using dialog box 4 Click the Visible property, select False to make the picture invisible when the programme starts A body of a procedure always fits between these two lines and is executed when a user activates the interface element associated with the procedure VB subroutine, or event procedure associated with a particular object in the interface The event is a mouse click

4 2 Type End, and press the Down arrow key. The End statement stops the execution of a programme and remove it from the screen Write Code for the Spin button 1 Open the object drop down list box in the Code window 2 Click Command1 in the list box and write the following code End is a keyword recognised by Visual Basic Compiler. VB has several hundred unique keywords 3 Indent the End statement by placing the cursor to the beginning of the line with End state in it, and press the spacebar 4 times (the indenting scheme is one of programming conventions to keep your programme clear and readable, the set of conventions regarding how programme code is organised is often referred to as programme style A Look at the Command1_Click Procedure The Command1_Click procedure is executed when the user click the Spin button on the form It performs 3 tasks: hides the coin stack, creates random numbers for the label windows and displays the coin stack when the number seven appears. Image1.Visible = False hide coins A Look at the Command1_Click Procedure The Rnd function creates a random number between 0 and 1 Int (Rnd*10) to create numbers between 0 and 9 and round them to integer number The numbers are then assigned to the Caption properties of the first three labels, and the assignment causes the numbers to be displayed in the label windows Programme statement Comment explanatory notes included in the programme following a single quotation mark( ). These notes are not processed by VB when the programme runs, they exist only to document what the programme does. The last group of statements checks whether any of the random number is 7, if one or more of them is, the stack of coin is made visible and beep Saving the Programme Hungarian Convention 1 On the File menu, click the Save Project As command 2 Select your programme file folder 3 Type the file name (e.g. MyLucky) and press enter Run the Programme 1 Click the Start button on the toolbar 2 Click the Spin button 3 Click the Spin button 10 to 20 times, watching the results 4 Click the End button to finish To help identify objects from their names, the Hungarian convention is used. Then when you see a list of subroutine names, for example, you can identify the object being referred to. It is good practice to change the default names of objects to ones that you want, as soon as you create the object. The convention suggests using the following prefixes: Check box chk Combo box cbo Command button cmd Data dat Directory list box dir Drive list box drv File list box fil Form frm Frame fra Horizontal scroll bar hsb Image img Label lbl Line lin List box lst Menu mnu Picture box pic Radio button opt Shape shp Text box txt Vertical scroll bar vsb

5 Session 3 The Anatomy of a VB Programme Statement A programme statement is a valid instruction for the Visual Basic Compiler `Use variables to store data in your program `Get input by using InputBox function `Display messages by using the MsgBox function `Use Mathematical operators and functions in formulas Programme Statement Keywords properties functions operators symbols Visual Basic Compiler Statement Syntax: is the rules for constructing programme statement Example: Label1.Caption = Time Object name Property name assignment operator VB Function Using Variable to Store Information Working with Specific Data Types VB variables follow the usual rules. There are many types of variables including Byte, Boolean Integer, Long, Single, Double, Currency, Date, String and Objects. Variants and sub-types The programmer has the option of declaring variables with explicit types or as type variant. The variant type provides dynamic typing: at run time the value has an associated tag to record the value currently stored. Declarations Dim A A as variant Dim B As Integer Dim C As String variable length string Dim D As String*10 fixed length string Const pi = pi as constant Data type Size Sample usage Integer 2 bytes Dim Birds% Birds%=37 Long 4 bytes Dim Loan& integer Loan&=32,000 Single precision 4 bytes Dim Price! floating point Price!= Double precision 8 bytes Dim Pi# floating point Pi#= Currency 8 bytes Dim Credit@ Credit = String 1 byte per Dim Dog$ character Dog$= Pointer Boolean 2 bytes Dim Flag as Boolean Flag = True Date 8 bytes Dim Birthday as Date Birthday = #3-1-63# User Defined Data Types Working with Arrays of Variables (I/III) Example: Using Type statement to define a new data type An array is a collection of values stored under a single name Type Employee Name As String DateOfBirth As Date HireDate As Date End Type Creating an Array: Before you can use an array, you must declare it. Declaring a Fixed-Sized Array: Syntax Public ArrayName (Dim1Elements, Dim2Elements,...) As DataType Use the new data type Dim ProductManager As Employee ProjectManager.Name = Erick Cody ProjectManager.HireData = #3-9-89# Public is the keyword that creates a global array ArrayName is the variable name of the array Dim1Elements is the number of elements in the first dimension of the array Dim2Elements is the number of elements in the second dimension of the array As DataType is a keyword corresponding to the type of data that will be include in the array To declare arrays locally in an event procedure, replace the public keyword with Static keyword and place the declaration inside and event procedure. Local array can only be used inside the procedure

6 Working with Arrays of Variables (II/III) Working with Arrays of Variables (III/III) Creating Dynamic Array To create a dynamic array, omitting the number of elements in the array. e.g. Public Temperature ( ) As Variant Actual size must be set before use by using the keyword ReDim Working with Visual Basic Operators Visual Basic Mathematical Functions Operator Mathematical Operation + Addition - Subtraction * Multiplication / Division \ Integer division Mod Remainder division ^ Exponentiation (Rising to a power) Abs (n) Atn (n) Cos (n) Exp (n) Rnd (n) Sgn (n) Sin (n) Sqr (n) Str (n) Tan (n) Val (n) & String concatenation (Combination) Operator Precedence Using Variable to Store Input Operator Order of Precedence Get Input by using InputBox ( ) Values within parentheses are always evaluated first ^ Exponentiation is second - Nagetive is third */ Multiplication and division is fourth \ Integer division is fifth Mod Remainder division is sixth +- Addition and subtraction is last Exercise: Create a user interface as shown on the right and type in the code and run the program. Use the online help to find out more about InputBox function

7 Functions Using a Variable for Output InputBox is a special Visual Basic keyword known as function. A function is a statement that performs meaningful work, such as prompt user for information, or calculating an equation, and then return a result to the program The value returned by a function can be assigned to a variable, or a property, or another statement or function When a function uses more than one argument, the arguments are separated by commas, the whole group of arguments is enclosed in parentheses, e.g FullName = InputBox$(Prompt, Title) The MsgBox function uses text strings to display output in a dialog box, the syntax for the MsgBox function is ButtonClicked = MsgBox(Message, NumberOfButtons, Title) Message: is the text to be displayed on the screen NumberOfButtons: is button style number (1-5) Title: is the text displayed in the message box title bar The variable ButtonClicked is assigned the result returned by the function, which indicates which button the user clicked in the dialog box. If you are just displaying a message in MsgBox, the assignment operator (=), the ButtonClicked variable, and the NumberOfButton argument are optional. Find out more about MsgBox in the VB online Help Week 1 Lab Exercises (I/IV) Week 1 Lab Exercises (II/IV) 1. Practice the Lucky Seven program described in pages of this note. But make sure that you use the Hungarian convention described in page 24 to name all the objects, e.g., the Spin button is a command button, you can name it as cmdspin. Obviously, cmdspin is more meaning than Command1. 2. Following this example, can you create a Lucky Eight program? 3. Try and change the colour and other appearances of the objects and user interface. Note: There is a coins.jpg image in the module s document directory which you can copy to your own directory and use in the program. The Hello World Program 1 Create a user interface using TextBox and CommandButton Control 2 Set the following properties for TextBox and Command Control Property Setting Text1 Text (Empty) Command1 Caption OK 3 Double-click the OK command button and type the following programme statement between Private Sub and End sub statement Text1.Text = Hello, World! TextBox 4 User the Form Layout window to set the position of the form when the programmes runs Can you change the appearance, font, text size, colour etc of Hello World!? 5. Make sure to use the Hungarian convention Week 1 Lab Exercises (III/IV) Week 1 Lab Exercises (IV/IV) Using Timer Object A timer object is an invisible stopwatch that gives you access to the system clock from your programs. A timer object is accurate to 1 millisecond (1/1000 second) Creating a digital clock by using timer object 1 Open a new project and resize the form to a small window 2 Click the timer control in the toolbox 3 Create a small timer object on the left side of the form 4 Click the Label control in the tool box, and create a label in the centre of the form that fills most of the form 5 Open the properties window, and set the following properties Label1 Caption Empty Font Times New Roman, Bold, 24 point Alignment 2 - Center Timer1 Interval 1000 Enabled True Form1 Caption Digital Clock 6 Double click the timer object and type the following code in the Timer1_Timer event procedure Label1.Caption = Time 7 Can you display date on your digital clock as well? Use File system objects 1 Click the DriveListBox control in the toolbox 2 Click the DirListBox control in toolbox and then add a directory list box to the form below the drive list box 3 Add FilelistBox 4 Add Image control 5 Set object properties as follows Object Property Setting File1 Pattern *.bmp; *wmf;*.ico; *.jpg Image1 Stretch True 6 Type the following code Private Sub Dir1_Change() File1.Path = Dir1.Path End Sub Private Sub Drive1_Change() Dir1.Path = Drive1.Drive End Sub Try and browse images in your system. I have put some in the module s Private Sub File1_Click() document directory. Try and SelectedFile = File1.Path & "\" & File1.FileName Image1.Picture = LoadPicture(SelectedFile) copy them into your local directory End Sub and have a look at those images

Computer Science 110. NOTES: module 8

Computer Science 110. NOTES: module 8 Computer Science 110 NAME: NOTES: module 8 Introducing Objects As we have seen, when a Visual Basic application runs, it displays a screen that is similar to the Windows-style screens. When we create a

More information

Using Visual Basic Studio 2008

Using Visual Basic Studio 2008 Using Visual Basic Studio 2008 Recall that object-oriented programming language is a programming language that allows the programmer to use objects to accomplish a program s goal. An object is anything

More information

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4 Subject Name VISUAL BASIC Sr.No Course content 1. 1. Introduction to Visual Basic 1.1. Programming Languages 1.1.1. Procedural,

More information

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

More information

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box. Visual Basic Concepts Hello, Visual Basic See Also There are three main steps to creating an application in Visual Basic: 1. Create the interface. 2. Set properties. 3. Write code. To see how this is done,

More information

Visual Basic. The Integrated Development Environment. Menu Bar

Visual Basic. The Integrated Development Environment. Menu Bar Visual Basic Visual Basic is initiated by using the Programs option > Microsoft Visual Basic 6.0 > Visual Basic 6.0. Clicking the Visual Basic icon, we can view a copyright screen enlisting the details

More information

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Visual Basic.NET. 1. Which language is not a true object-oriented programming language? Visual Basic.NET Objective Type Questions 1. Which language is not a true object-oriented programming language? a.) VB.NET b.) VB 6 c.) C++ d.) Java Answer: b 2. A GUI: a.) uses buttons, menus, and icons.

More information

( ) 1.,, Visual Basic,

( ) 1.,, Visual Basic, ( ) 1. Visual Basic 1 : ( 2012/2013) :. - : 4 : 12-14 10-12 2 http://www.institutzamatematika.com/index.ph p/kompjuterski_praktikum_2 3 2 / ( ) 4 90% 90% 10% 90%! 5 ? 6 "? : 7 # $? - ( 1= on 0= off ) -

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

More information

VISUAL BASIC For Engineers & Scientists. Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University

VISUAL BASIC For Engineers & Scientists. Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University VISUAL BASIC For Engineers & Scientists Shahab D. Mohaghegh, Ph.D. Professor Petroleum & Natural Gas Engineering West Virginia University March 1997 TABLE OF CONTENTS Chapter 1: Problem Solving with Visual

More information

Overview About KBasic

Overview About KBasic Overview About KBasic The following chapter has been used from Wikipedia entry about BASIC and is licensed under the GNU Free Documentation License. Table of Contents Object-Oriented...2 Event-Driven...2

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

VBScript: Math Functions

VBScript: Math Functions C h a p t e r 3 VBScript: Math Functions In this chapter, you will learn how to use the following VBScript functions to World Class standards: 1. Writing Math Equations in VBScripts 2. Beginning a New

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

Lecture 1 Introduction Phil Smith

Lecture 1 Introduction Phil Smith 2014-2015 Lecture 1 Introduction Phil Smith Learning Outcomes LO1 Understand the principles of object oriented programming LO2 Be able to design object oriented programming solutions LO3 Be able to implement

More information

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com, info@nicelabel.com English Edition Rev-0910 2009 Euro Plus d.o.o. & Niceware International LLC All rights reserved. www.nicelabel.com Head Office Euro Plus d.o.o. Ulica Lojzeta Hrovata

More information

EXCEL 2003 DISCLAIMER:

EXCEL 2003 DISCLAIMER: EXCEL 2003 DISCLAIMER: This reference guide is meant for experienced Microsoft Excel users. It provides a list of quick tips and shortcuts for familiar features. This guide does NOT replace training or

More information

WEEK NO. 12 MICROSOFT EXCEL 2007

WEEK NO. 12 MICROSOFT EXCEL 2007 WEEK NO. 12 MICROSOFT EXCEL 2007 LESSONS OVERVIEW: GOODBYE CALCULATORS, HELLO SPREADSHEET! 1. The Excel Environment 2. Starting A Workbook 3. Modifying Columns, Rows, & Cells 4. Working with Worksheets

More information

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Excel Select a template category in the Office.com Templates section. 5. Click the Download button. Microsoft QUICK Excel 2010 Source Getting Started The Excel Window u v w z Creating a New Blank Workbook 2. Select New in the left pane. 3. Select the Blank workbook template in the Available Templates

More information

You will have mastered the material in this chapter when you can:

You will have mastered the material in this chapter when you can: CHAPTER 6 Loop Structures OBJECTIVES You will have mastered the material in this chapter when you can: Add a MenuStrip object Use the InputBox function Display data using the ListBox object Understand

More information

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014 Midterm Review Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers April 4, 2017 Outline Excel spreadsheet basics Use of VBA functions and subs Declaring/using variables

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

Document Editor Basics

Document Editor Basics Document Editor Basics When you use the Document Editor option, either from ZP Toolbox or from the Output option drop-down box, you will be taken to the Report Designer Screen. While in this window, you

More information

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1 Part 1 Visual Basic: The Language Chapter 1: Getting Started with Visual Basic 2010 Chapter 2: Handling Data Chapter 3: Visual Basic Programming Essentials COPYRIGHTED MATERIAL Chapter 1 Getting Started

More information

ECDL Module 4 REFERENCE MANUAL

ECDL Module 4 REFERENCE MANUAL ECDL Module 4 REFERENCE MANUAL Spreadsheets Microsoft Excel XP Edition for ECDL Syllabus Four PAGE 2 - ECDL MODULE 4 (USING MICROSOFT EXCEL XP) - MANUAL 4.1 USING THE APPLICATION... 4 4.1.1 FIRST STEPS

More information

Visual C# Program: Resistor Sizing Calculator

Visual C# Program: Resistor Sizing Calculator C h a p t e r 4 Visual C# Program: Resistor Sizing Calculator In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor

More information

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab.

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. DriveListBox Control, DirListBox Control, and FileListBox Control CommonDialog Control 1 2 DriveListBox Control disk drive Important Properties object.drive [= drive] Drive Floppy disks "a:" or "b:", and

More information

NOTES: Variables & Constants (module 10)

NOTES: Variables & Constants (module 10) Computer Science 110 NAME: NOTES: Variables & Constants (module 10) Introduction to Variables A variable is like a container. Like any other container, its purpose is to temporarily hold or store something.

More information

LESSON A. The Splash Screen Application

LESSON A. The Splash Screen Application The Splash Screen Application LESSON A LESSON A After studying Lesson A, you should be able to: Start and customize Visual Studio 2010 or Visual Basic 2010 Express Create a Visual Basic 2010 Windows application

More information

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer

More information

Microsoft Excel 2010 Tutorial

Microsoft Excel 2010 Tutorial 1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and

More information

VISUAL BASIC 6.0 OVERVIEW

VISUAL BASIC 6.0 OVERVIEW VISUAL BASIC 6.0 OVERVIEW GENERAL CONCEPTS Visual Basic is a visual programming language. You create forms and controls by drawing on the screen rather than by coding as in traditional languages. Visual

More information

Status Bar: Right click on the Status Bar to add or remove features.

Status Bar: Right click on the Status Bar to add or remove features. Excel 2013 Quick Start Guide The Excel Window File Tab: Click to access actions like Print, Save As, etc. Also to set Excel options. Ribbon: Logically organizes actions onto Tabs, Groups, and Buttons to

More information

Visual C# Program: Simple Game 3

Visual C# Program: Simple Game 3 C h a p t e r 6C Visual C# Program: Simple Game 3 In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Opening Visual C# Editor Beginning a

More information

A Tutorial for Excel 2002 for Windows

A Tutorial for Excel 2002 for Windows INFORMATION SYSTEMS SERVICES Writing Formulae with Microsoft Excel 2002 A Tutorial for Excel 2002 for Windows AUTHOR: Information Systems Services DATE: August 2004 EDITION: 2.0 TUT 47 UNIVERSITY OF LEEDS

More information

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming Introduction to the Visual Studio.NET Integrated Development Environment IDE CSC 211 Intermediate Programming Visual Studio.NET Integrated Development Environment (IDE) The Start Page(Fig. 1) Helpful links

More information

lab MS Excel 2010 active cell

lab MS Excel 2010 active cell MS Excel is an example of a spreadsheet, a branch of software meant for performing different kinds of calculations, numeric data analysis and presentation, statistical operations and forecasts. The main

More information

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C 1. Visual Basic is a tool that allows you to develop application in A. Real time B. Graphical User Interface C. Menu Driven D. None Of These 2. IDE stands for.. A. Internet Development Environment B. Integrated

More information

Program and Graphical User Interface Design

Program and Graphical User Interface Design CHAPTER 2 Program and Graphical User Interface Design OBJECTIVES You will have mastered the material in this chapter when you can: Open and close Visual Studio 2010 Create a Visual Basic 2010 Windows Application

More information

Introductionto the Visual Basic Express 2008 IDE

Introductionto the Visual Basic Express 2008 IDE 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools. Henri-Louis Bergson Introductionto

More information

GUI Design and Event- Driven Programming

GUI Design and Event- Driven Programming 4349Book.fm Page 1 Friday, December 16, 2005 1:33 AM Part 1 GUI Design and Event- Driven Programming This Section: Chapter 1: Getting Started with Visual Basic 2005 Chapter 2: Visual Basic: The Language

More information

Inspiration 8 IE: tutorial

Inspiration 8 IE: tutorial Inspiration 8 IE: tutorial Edition 3a, June 2006 If you would like this document in an alternative format please ask at The Library Help and Information Point where a folder of examples is available. On

More information

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY UNESCO-NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT-PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY OOBASIC/VISUAL BASIC PROGRAMMING COURSE CODE: COM 211 YEAR I SEMESTER II PRACTICAL

More information

Section 3. Editing a Web Page

Section 3. Editing a Web Page New CLAIT FrontPage 2003 Section 3 Editing a Web Page By the end of this Section you will be able to: Work in Page View Enter Text Insert Text Edit the Page Format Text Insert an Image Preview the Page

More information

Visual C# Program: Temperature Conversion Program

Visual C# Program: Temperature Conversion Program C h a p t e r 4B Addendum Visual C# Program: Temperature Conversion Program In this chapter, you will learn how to use the following Visual C# Application functions to World Class standards: Writing a

More information

Designer Reference 1

Designer Reference 1 Designer Reference 1 Table of Contents USE OF THE DESIGNER...4 KEYBOARD SHORTCUTS...5 Shortcuts...5 Keyboard Hints...5 MENUS...7 File Menu...7 Edit Menu...8 Favorites Menu...9 Document Menu...10 Item Menu...12

More information

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator...

Agenda. First Example 24/09/2009 INTRODUCTION TO VBA PROGRAMMING. First Example. The world s simplest calculator... INTRODUCTION TO VBA PROGRAMMING LESSON2 dario.bonino@polito.it Agenda First Example Simple Calculator First Example The world s simplest calculator... 1 Simple Calculator We want to design and implement

More information

Gloucester County Library System. Excel 2010

Gloucester County Library System. Excel 2010 Gloucester County Library System Excel 2010 Introduction What is Excel? Microsoft Excel is an electronic spreadsheet program. It is capable of performing many different types of calculations and can organize

More information

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar

Workbook Also called a spreadsheet, the Workbook is a unique file created by Excel. Title bar Microsoft Excel 2007 is a spreadsheet application in the Microsoft Office Suite. A spreadsheet is an accounting program for the computer. Spreadsheets are primarily used to work with numbers and text.

More information

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Microsoft Access XP (2002) - Forms Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Table of Contents Exercise File Needed... 3 INTRODUCTION

More information

Corel Ventura 8 Introduction

Corel Ventura 8 Introduction Corel Ventura 8 Introduction Training Manual A! ANZAI 1998 Anzai! Inc. Corel Ventura 8 Introduction Table of Contents Section 1, Introduction...1 What Is Corel Ventura?...2 Course Objectives...3 How to

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

Tutorials. Lesson 1 - Format a Schedule. In this lesson you will learn how to: Change the schedule s date range. Change the date headings.

Tutorials. Lesson 1 - Format a Schedule. In this lesson you will learn how to: Change the schedule s date range. Change the date headings. In this lesson you will learn how to: Change the schedule s date range. Change the date headings. Tutorials Change the schedule dimensions. Change the legend and add a new legend entry. Work with pages

More information

d2vbaref.doc Page 1 of 22 05/11/02 14:21

d2vbaref.doc Page 1 of 22 05/11/02 14:21 Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error

More information

Language Fundamentals

Language Fundamentals Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long

More information

GETTING STARTED WITH VBA

GETTING STARTED WITH VBA Split Your Windows Click & Retrieve Source CODE! Add a Splitter class to your application to give it a Windows 95 Explorer-style splitter bar. by Chris Barlow n the last few columns I ve looked at the

More information

LESSON B. The Toolbox Window

LESSON B. The Toolbox Window The Toolbox Window After studying Lesson B, you should be able to: Add a control to a form Set the properties of a label, picture box, and button control Select multiple controls Center controls on the

More information

Architect. User s Manual

Architect. User s Manual Architect User s Manual DOC. NO. UM-PT202-03 Version 1.11 January 2013 TABLE OF CONTENTS Chapter 1: Introduction...1 Features... 1 System Requirements... 2 Installing the Software... 2 Opening the Software...

More information

MODIFYING CIRCULATION WINDOW DISPLAYS

MODIFYING CIRCULATION WINDOW DISPLAYS 5-58 Using M3 Circulation MODIFYING CIRCULATION WINDOW DISPLAYS Note: If M3 v1.6 was your first installation of M3, graphic cells appear by default in the Patron and Item panes for all modes. Tip: Create

More information

FIT 100. Lab 8: Writing and Running Your First Visual Basic Program Spring 2002

FIT 100. Lab 8: Writing and Running Your First Visual Basic Program Spring 2002 FIT 100 Lab 8: Writing and Running Your First Visual Basic Program Spring 2002 1. Create a New Project and Form... 1 2. Add Objects to the Form and Name Them... 3 3. Manipulate Object Properties... 3 4.

More information

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net UNIT 1 Introduction to Microsoft.NET framework and Basics of VB.Net 1 SYLLABUS 1.1 Overview of Microsoft.NET Framework 1.2 The.NET Framework components 1.3 The Common Language Runtime (CLR) Environment

More information

Spreadsheet View and Basic Statistics Concepts

Spreadsheet View and Basic Statistics Concepts Spreadsheet View and Basic Statistics Concepts GeoGebra 3.2 Workshop Handout 9 Judith and Markus Hohenwarter www.geogebra.org Table of Contents 1. Introduction to GeoGebra s Spreadsheet View 2 2. Record

More information

Microsoft Excel for Beginners

Microsoft Excel for Beginners Microsoft Excel for Beginners training@health.ufl.edu Basic Computing 4 Microsoft Excel 2.0 hours This is a basic computer workshop. Microsoft Excel is a spreadsheet program. We use it to create reports

More information

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end)

Review for Programming Exam and Final May 4-9, Ribbon with icons for commands Quick access toolbar (more at lecture end) Review for Programming Exam and Final Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers May 4-9, 2017 Outline Schedule Excel Basics VBA Editor and programming variables

More information

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007)

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 2 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) TABLE OF CONTENTS CHAPTER 1: GETTING STARTED... 5 THE EXCEL ENVIRONMENT...

More information

Setup Examples. RTPView Project Program

Setup Examples. RTPView Project Program Setup Examples RTPView Project Program RTPView Project Program Example 2005, 2007, 2008, 2009 RTP Corporation Not for reproduction in any printed or electronic media without express written consent from

More information

EXCEL TUTORIAL.

EXCEL TUTORIAL. EXCEL TUTORIAL Excel is software that lets you create tables, and calculate and analyze data. This type of software is called spreadsheet software. Excel lets you create tables that automatically calculate

More information

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting. TSM Report Designer The TSM Report Designer is used to create and modify your TSM reports. Each report in TSM prints data found in the databases assigned to that report. TSM opens these databases according

More information

Standardized Coding Practices

Standardized Coding Practices Date: June 1st, 2006 Prepared By: David Ell Project: CAWS Standards Documentation Harvest Package Name: RFC_000164 Harvest Version: 11 Services Coding Practices Table of Contents Revision History... ii

More information

Budget Exercise for Intermediate Excel

Budget Exercise for Intermediate Excel Budget Exercise for Intermediate Excel Follow the directions below to create a 12 month budget exercise. Read through each individual direction before performing it, like you are following recipe instructions.

More information

INTRODUCTION TO CHEMDRAW ULTRA 12.0

INTRODUCTION TO CHEMDRAW ULTRA 12.0 INTRODUCTION TO CHEMDRAW ULTRA 12.0 ITEC107 - Introduction to Computing for Pharmacy 1 Objectives Why use ChemDraw Open, view, save and close a document Exploring the user-interface and toolbars Analyzing

More information

RL6 - WORKING WITH REPORTS

RL6 - WORKING WITH REPORTS RL6 - WORKING WITH REPORTS If you have RL6 Risk questions please contact: RL_support@wrha.mb.ca or (204) 926-1070 WRHA Quality Improvement & Patient Safety Version: 3.0, November 2, 2018 WORKING WITH REPORTS

More information

Introduction to Microsoft Word

Introduction to Microsoft Word Chapter Microsoft Word is a powerful word processing program that allows you to enter text, make changes to it, format it, record and print it. You can use it to produce professional business letters,

More information

Center for Faculty Development and Support Making Documents Accessible

Center for Faculty Development and Support Making Documents Accessible Center for Faculty Development and Support Making Documents Accessible in Word 2007 Tutorial CONTENTS Create a New Document and Set Up a Document Map... 3 Apply Styles... 4 Modify Styles... 5 Use Table

More information

Lesson 8: Presentation Enhancements Microsoft PowerPoint 2016

Lesson 8: Presentation Enhancements Microsoft PowerPoint 2016 Lesson 8: Presentation Enhancements Microsoft PowerPoint 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO Set up presentations for delivery. View and change slide masters. Add WordArt text. Create hyperlinks.

More information

Creating Web Applications Using ASP.NET 2.0

Creating Web Applications Using ASP.NET 2.0 12 Creating Web Applications Using ASP.NET 2.0 12 Chapter CXXXX 39147 Page 1 07/14/06--JHR After studying Chapter 12, you should be able to: Define the terms used when talking about the Web Create a Web

More information

Introduction to Data Entry and Data Types

Introduction to Data Entry and Data Types 212 Chapter 4 Variables and Arithmetic Operations STEP 1 With the Toolbox visible (see Figure 4-21), click the Toolbox Close button. The Toolbox closes and the work area expands in size.to reshow the Toolbox

More information

The Mathcad Workspace 7

The Mathcad Workspace 7 For information on system requirements and how to install Mathcad on your computer, refer to Chapter 1, Welcome to Mathcad. When you start Mathcad, you ll see a window like that shown in Figure 2-1. By

More information

Introduction to Computer Use II

Introduction to Computer Use II Winter 2005 (Section M) Topic B: Variables, Data Types and Expressions Wednesday, January 18 2006 COSC 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions to consider

More information

Visual C# Instructor s Manual Table of Contents

Visual C# Instructor s Manual Table of Contents Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms

More information

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

More information

v Annotation Tools GMS 10.4 Tutorial Use scale bars, North arrows, floating images, text boxes, lines, arrows, circles/ovals, and rectangles.

v Annotation Tools GMS 10.4 Tutorial Use scale bars, North arrows, floating images, text boxes, lines, arrows, circles/ovals, and rectangles. v. 10.4 GMS 10.4 Tutorial Use scale bars, North arrows, floating images, text boxes, lines, arrows, circles/ovals, and rectangles. Objectives GMS includes a number of annotation tools that can be used

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Microsoft How to Series

Microsoft How to Series Microsoft How to Series Getting Started with EXCEL 2007 A B C D E F Tabs Introduction to the Excel 2007 Interface The Excel 2007 Interface is comprised of several elements, with four main parts: Office

More information

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon. EXCEL 2007 TIP SHEET GLOSSARY AutoSum a function in Excel that adds the contents of a specified range of Cells; the AutoSum button appears on the Home ribbon as a. Dialog Box Launcher these allow you to

More information

Microsoft Excel Level 1

Microsoft Excel Level 1 Microsoft Excel 2010 Level 1 Copyright 2010 KSU Department of Information Technology Services This document may be downloaded, printed, or copied for educational use without further permission of the Information

More information

Microsoft Office Excel

Microsoft Office Excel Microsoft Office 2007 - Excel Help Click on the Microsoft Office Excel Help button in the top right corner. Type the desired word in the search box and then press the Enter key. Choose the desired topic

More information

Dive Into Visual C# 2010 Express

Dive Into Visual C# 2010 Express Dive Into Visual C# 2010 Express 2 Seeing is believing. Proverb Form ever follows function. Louis Henri Sullivan Intelligence is the faculty of making artificial objects, especially tools to make tools.

More information

2 USING VB.NET TO CREATE A FIRST SOLUTION

2 USING VB.NET TO CREATE A FIRST SOLUTION 25 2 USING VB.NET TO CREATE A FIRST SOLUTION LEARNING OBJECTIVES GETTING STARTED WITH VB.NET After reading this chapter, you will be able to: 1. Begin using Visual Studio.NET and then VB.NET. 2. Point

More information

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling Access Review Relational Databases Different tables can have the same field in common. This feature is used to explicitly specify a relationship between two tables. Values appearing in field A in one table

More information

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

POS Designer Utility

POS Designer Utility POS Designer Utility POS Designer Utility 01/15/2015 User Reference Manual Copyright 2012-2015 by Celerant Technology Corp. All rights reserved worldwide. This manual, as well as the software described

More information

Band Editor User Guide Version 1.3 Last Updated 9/19/07

Band Editor User Guide Version 1.3 Last Updated 9/19/07 Version 1.3 Evisions, Inc. 14522 Myford Road Irvine, CA 92606 Phone: 949.833.1384 Fax: 714.730.2524 http://www.evisions.com/support Table of Contents 1 - Introduction... 4 2 - Report Design... 7 Select

More information

Tutorials. Lesson 3 Work with Text

Tutorials. Lesson 3 Work with Text In this lesson you will learn how to: Add a border and shadow to the title. Add a block of freeform text. Customize freeform text. Tutorials Display dates with symbols. Annotate a symbol using symbol text.

More information

Creating a Spreadsheet by Using Excel

Creating a Spreadsheet by Using Excel The Excel window...40 Viewing worksheets...41 Entering data...41 Change the cell data format...42 Select cells...42 Move or copy cells...43 Delete or clear cells...43 Enter a series...44 Find or replace

More information

VB FUNCTIONS AND OPERATORS

VB FUNCTIONS AND OPERATORS VB FUNCTIONS AND OPERATORS In der to compute inputs from users and generate results, we need to use various mathematical operats. In Visual Basic, other than the addition (+) and subtraction (-), the symbols

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

Angel International School - Manipay 1 st Term Examination November, 2015

Angel International School - Manipay 1 st Term Examination November, 2015 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Grade 11A & C Duration: 3.00 Hours Part 1 Choose the most appropriate answer. 1) Find the

More information