Chapter 4: Do-It-Yourself Designing (Designing Interfaces)

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

CE 311 K Introduction to Computer Methods VB Controls and Events Daene C. McKinney.
Chapter 1: An Introduction to Visual Basic 2012
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
Chapter 2: Designing Applications
Programming with Microsoft Visual Basic 2008 Fourth Edition
PROGRAMMING WITH MICROSOFT VISUAL BASIC TH EDITION Chapter Two Designing Applications.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
1.
Chapter 1: An Introduction to Visual Basic.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Microsoft Visual Basic 2010: Reloaded Fourth Edition
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Chapter 8: String Manipulation
Programming with Microsoft Visual Basic th Edition
Microsoft Visual Basic 2005: Reloaded Second Edition
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
Clearly Visual Basic: Programming with Visual Basic 2008
Programming with Microsoft Visual Basic 2012 Chapter 2: Designing Applications.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 2 Creating a User Interface.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
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.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Chapter Two Creating a First Project in Visual Basic.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Chapter 15 I’m on the Inside; You’re on the Outside (Nested Loops) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter Eight String Manipulation.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Chapter 2 More Controls Programming in C#. NET Objectives Use text boxes, group boxes, check boxes, radio buttons, and picture boxes effectively.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Visual Basic A Quick Tutorial VB Review for ACS 367.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Programming with Microsoft Visual Basic 2012 Chapter 1: An Introduction to Visual Basic 2012.
Programming with Microsoft Visual Basic 2008 Fourth Edition Chapter One An Introduction to Visual Basic 2008.
Dive Into® Visual Basic 2010 Express
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 1: An Introduction to Visual Basic .NET
Excel Tutorial 8 Developing an Excel Application
Microsoft Visual Basic 2005: Reloaded Second Edition
Chapter 1: An Introduction to Visual Basic 2012
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
Developing an Excel Application
How to design a Windows Forms application
Chapter 4: The Selection Structure
Chapter 1: An Introduction to Visual Basic 2015
Microsoft Excel 2003 Illustrated Complete
Program and Graphical User Interface Design
CIS16 Application Programming with Visual Basic
MODULE 7 Microsoft Access 2010
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
Building an Application in the Visual Basic .NET Environment
An Introduction to Computers and Visual Basic
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

Chapter 4: Do-It-Yourself Designing (Designing Interfaces)

Chapter Objectives After studying Chapter 4, you should be able to: Use a text box to get user input Perform an action with a button control Code a control’s Click event procedure Stop an application using the Me.Close() instruction Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work When designing an interface Examine each step in the problem’s algorithm, along with its output and input items Assign meaningful names to each of the controls Beware of Hungarian notation and use camel case Make sure that each control has a purpose Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Figure 4-1 Problem specification, output, input, and algorithm for the Edwards and Son problem Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Figure 4-2 List of controls Figure 4-3 Name and purpose of each control Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Figure 4-4 Controls added to the form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Sentence capitalization Capitalize only first letter in each word and in any words that are customarily capitalized Used in identifying labels Book title capitalization Capitalize first letter in each word, except for articles, conjunctions, and prepositions Used in button captions Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Making the Interface More User-Friendly Use an access key Users can use the keyboard Alt button The ampersand (&) key sets the letter after the to be the access key Alt key If you do not see the access keys press the alt key Figure 4-8 Access keys shown in the interface Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) Access key Allows user to select a menu using the alt key in combination with a letter or number Not case sensitive Should be assigned to each control (in the interface) that can accept user input Allows user to work with interface even when mouse becomes inoperative Also useful for people with disabilities that prevent them from using a mouse Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Delegating the Work (Cont.) TabIndex property Sets the tab order allowing the user to use the keyboard’s tab key Figure 4-9 TabIndex values for the Label1 and txtRevenue control Figure 4-10 Correct TabIndex values for the interface Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Do What I Tell You to Do Tab order When interface is first created Determined by number stored in each control’s TabIndex property When interface is first created TabIndex values reflect the order in which each control was added to the form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Summary Creating the user interface Fourth step in the problem-solving process Windows applications in Visual Basic Composed of solutions, projects, and files Label controls Display text that user is not allowed to edit while an application is running Picture boxes Used to display images on a form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012

Summary (Cont.) Good practice to save solution every 10-15 minutes Form’s StartPosition property Specifies the position of the form when it first appears on the screen Font property Determines the type, style, and size of font used to display text on the form Picture box control’s Image property Specifies name of file containing the image to display Good practice to lock the controls in place on form Clearly Visual Basic: Programming with Microsoft Visual Basic 2012