Flowchart Start Input weight and height

Slides:



Advertisements
Similar presentations
Chapter 3 Creating a Business Letter with a Letterhead and Table
Advertisements

Creating an OOED Application
Introduction to PowerPoint
1.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 03.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Text Box controls are used when users are required to type some input (during program execution), or output is displayed on the form (known as the user-
Exploring the Basics of Windows XP. Objectives Start Windows XP and tour the desktop Explore the Start menu Run software programs, switch between them,
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
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.
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.
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
IE 411/511: Visual Programming for Industrial Applications
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 2 Creating a User Interface.
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Chapter Two Creating a First Project in Visual Basic.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Office XP Illustrated Introductory, Enhanced Started with Windows 2000 Getting.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 2 More Controls.
1 Lesson 11 Exploring Microsoft Office 2010 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al- ajmi Chapter 3 Some Visual Basic Controls and Events Visual Basic. NET.
Slide 1 VB Graphics Controls & Timer Control. Slide 2 Default Controls.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
Controls. Common properties Height – Height of the control Left – Left of the control Width – width of a control Top - From the screen top Font – Foreground.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
GUI Controls for Input Design Introduction –Most new applications being developed today include a GUI. This approach is influenced by a new trend in.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
1 Lesson 11 Exploring Microsoft Office 2010 Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 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.
MS WORD INFORMATION TECHNOLOGY MANAGEMENT SERVICE Training & Research Division.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Chapter 1: An Introduction to Visual Basic .NET
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Introduction to Computing
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
3.01 Apply Controls Associated With Visual Studio Form
Microsoft Visual Basic 2005 BASICS
Chapter 2 – Introduction to the Visual Studio .NET IDE
Windows xp PART 1 DR.WAFAA SHRIEF.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Flowchart Start Input weight and height Convert weight to kilograms Convert height to meters Calculate body mass index Display body mass index

Is body mass > = 25? No Yes Display “Normal” Display “Overweight” End

Hierarchy Chart Body Mass Program Input Height and Weight Calculate Body Mass Index Display Overweight or Not Overweight Convert inches to meters Convert pounds to kilograms Determine whether or not Body Mass Index >= 25

Pseudocode Input height in inches and weight in pounds convert height to meters height in meters = height in inches / 39.37 convert weight to kilograms weight in kilograms = weight in pounds * .454 Calculate body mass index body mass index = weight / height2 If body mass index >= 25 display “Overweight” Else display “Not Overweight”

Additional Controls and GUI Guidelines

Text Controls Label control displays text entered by the program designer used for output or labeling components on the form Text Box control places text entered by the user on the form used for input from the user List Box control displays a list of items Combo Box control combines features of list box and text box

Buttons Command Button control Places a button on a form that the user clicks to invoke an event Option Button control enables the user to make one selection from a group of choices Check Box control enables the user to turn an option on or off, or set values to true or false

Containers Picture Box control used to store a graphic image Image control used to place an image on the screen the image can be clicked, like a command button, to invoke an event Frame control serves as a container for other controls. used to visually separate related controls from other controls on the form to make a PictureBox control automatically resize to display an entire graphic, set its AutoSize property to True.

Image and Picture Boxes Allow you to load up images from the disk and display on the screen at design time at run time

Loading Graphics at Design Time Use the Picture property of images pictureBoxes forms

Loading Graphics at Run Time The LoadPicture function loads a new image into the Image or PictureBox control during run time Example: Image1.Picture = LoadPicture(“C:\pic\city.bmp”) only a pointer to the file image file name must include complete path must remember to include graphics files with the application

PictureBox Control’s AutoSize Property Determines whether a control is automatically resized to display it’s entire contents. If set to True, the PictureBox dimensions adjust to the size of the contents.

Image Control’s Stretch Property Setting the stretch property to true makes the size of the image conform to whatever size you set the Image control. The default value, false, means the image control will take on the size of the image that is loaded into it.

Image vs. PictureBox Controls Image controls stretch the image, picture boxes do not Image controls use less computer resources Image controls have fewer properties, events and methods PictureBoxes can be used as container objects (allows other controls to be drawn inside of it) or to display output with it’s Print method. picResults.Print “Hello World”

GUI Guidelines for Layout and Organization of the Interface Make your design consistent with the Windows standards. Have the information flow either vertically or horizontally, with the most important information located in the upper-left corner of the screen. Use frames or white space to group related controls together.

GUI Guidelines for Layout and Organization of the Interface (cont.) Limit the number of command buttons in the interface to six and put the most commonly used buttons first. Command buttons should be either centered along the bottom of the screen or stacked in either the upper-right or lower-left corner of the screen.

GUI Guidelines for Layout and Organization of the Interface (cont.) Identifying labels should be left-aligned and positioned either above or to the left of the control and should end with a colon. Identifying labels, including captions, should be from one to three words only and should appear on one line.

Getting Help Online help Microsoft web site Additional texts MSDN Library for Visual Studio Microsoft web site http://msdn.Microsoft.com/vbasic/ Additional texts Beginning Visual Basic 6 by Peter Wright Wrox Pres ISBN 1-861001-05-3