Chapter Two Designing Applications Programming with Microsoft Visual Basic 2010 5 th Edition.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

Chapter 1: An Introduction to Visual Basic 2012
Using Macros and Visual Basic for Applications (VBA) with Excel
Tutorial 8: Developing an Excel Application
Chapter 2: Designing Applications
Chapter 2: Designing Applications
Programming with Microsoft Visual Basic 2008 Fourth Edition
Tutorial 2: Designing Applications1 Tutorial 2 Designing Applications.
PROGRAMMING WITH MICROSOFT VISUAL BASIC TH EDITION Chapter Two Designing Applications.
Pasewark & Pasewark 1 Excel Lesson 2 Changing the Appearance of a Worksheet Microsoft Office 2007: Introductory.
© by Pearson Education, Inc. All Rights Reserved. continued …
1.
Tutorial 21 Procedure-Oriented vs Object- Oriented/Event-Driven w Procedure-oriented Emphasis of a program is on how to accomplish a task User has little,
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
MS-Access XP Lesson 5. Creating a Query with Expression Builder Eg. Consider the following table. Table Name: Overtime Fields & Data types: Emp No (Number),
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Section 7.1 Identify presentation design principles Use a custom template Add pages to a navigation structure Section 7.2 Identify color scheme guidelines.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
© 2002 ComputerPREP, Inc. All rights reserved. Word 2000: Working with Long Documents.
BIM313 – Advanced Programming Simple Controls 1. Contents Traditional Controls – Labels, Text Boxes, Buttons, Check Boxes, List Boxes, Combo Boxes Advanced.
Programming with Microsoft Visual Basic th Edition Chapter Two Designing Applications.
1 Microsoft Visual Basic 2010 Week Two Designing Applications.
IE 411/511: Visual Programming for Industrial Applications
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
Chapter 2 More Controls Programming in C#. NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Database Applications – Microsoft Access Lesson 6A Designing Custom Forms Updated F13 24 slides in presentation 1.
Clearly Visual Basic: Programming with Visual Basic 2008
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
Programming with Microsoft Visual Basic 2012 Chapter 2: Designing Applications.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 2 Creating a User Interface.
Starting Out with Visual Basic.NET 2 nd Edition Chapter 2 Creating Applications With Visual Basic.NET.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Excel – Lesson 2 Excel Lesson 2 Changing the Appearance of a Worksheet Microsoft Office 2007: Introductory Pasewark & Pasewark 1.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Chapter Two Creating a First Project in Visual Basic.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
1 Lesson 13 Organizing and Enhancing Worksheets Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Lesson: 2 Common Features and Commands After completing this lesson, you will be able to: Identify the main components of the user interface. Identify.
1 Excel Lesson 1 Microsoft Excel Basics Microsoft Office 2010 Pasewark & Pasewark.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 4 Designing the Inventory Application Introducing TextBox es and Button s.
Chapter 2 More Controls Programming in C#. NET Objectives Use text boxes, group boxes, check boxes, radio buttons, and picture boxes effectively.
MSOffice PowerPoint 1 Part 1 ® Microsoft® Office 2010: Illustrated Introductory.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
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.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
 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.
Programming with Microsoft Visual Basic 2012 Chapter 1: An Introduction to Visual Basic 2012.
Chapter 4: Do-It-Yourself Designing (Designing Interfaces)
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 2015
CIS16 Application Programming with Visual Basic
Chapter 1: An Introduction to Visual Basic 2015
Chapter 3 Fundamentals of Programming in Visual Basic 3
CIS16 Application Programming with Visual Basic
Chapter 12 Lesson 1 Notes.
Tutorial 2 Designing Applications
Presentation transcript:

Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition

Programming with Microsoft Visual Basic 2010, 5 th Edition Lesson B Objectives 2 After studying Lesson B, you should be able to: Build the user interface using your TOE chart and sketch Follow the Windows standards regarding the use of graphics, fonts, and color Set a control’s BorderStyle property Add a text box to a form Lock the controls on the form Assign access keys to controls Use the TabIndex property

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface 3 Use TOE chart and sketch as guides when building user interface Place appropriate controls on forms Set applicable properties of controls Features of UI used in this lesson’s application Information arranged vertically Controls aligned and appropriately labeled Try to create an interface that no one notices

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 4 Figure 2-12 Partially completed interface for the Playtime Cellular application

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 5 Including graphics in the user interface Graphics: Icons or pictures added to an interface Used to emphasize or clarify a portion of screen, or for aesthetic purposes The human eye is attracted to pictures before text Include graphics sparingly Graphics for aesthetic use should be small and positioned to avoid distracting user

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 6 Selecting fonts for the interface Font property controls font type, style, and size Recommendations for fonts Use sans serif fonts (without strokes) e.g., Segoe UI, Tahoma, Microsoft Sans Serif Use only one or two font sizes and one font type Avoid italics and underlining Limit bold text to titles, headings, and key items

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 7 Adding color to the interface The eye is drawn to color before black and white Add color only if there is good reason Many people have trouble distinguishing color Guidelines for adding colors Use dark text against light background Avoid using dark color for background Limit colors to three, not including black, white, gray Colors added should be complementary Do not use color as only means of identification for an element in the UI

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 8 BorderStyle property: Determines style of control’s border None: Ensures control will not have border FixedSingle: Surrounds control with thin line Fixed3D: Gives control a 3-D appearance (default) AutoSize property: Determines whether label control automatically sizes to fit its current contents Use True for identifying labels, but use False for output labels

Programming with Microsoft Visual Basic 2010, 5 th Edition Building the User Interface (cont’d.) 9 Adding a Text Box Control to the Form Text box control provides an area in the form for data entry Use TextBox tool to add a text box control Make all text boxes same size and align them using snap lines Blue snap lines used for vertical alignment Pink snap lines used for horizontal alignment

Programming with Microsoft Visual Basic 2010, 5 th Edition Adding a Text Box Control to the Form (continued) 10 Figure 2-13 Snap lines shown in the interface

Programming with Microsoft Visual Basic 2010, 5 th Edition Locking the Controls on a Form 11 Lock controls after they are properly placed Purpose: avoid inadvertently moving controls A locked control is identified by a small lock To lock controls Click form (or any control on the form) Click Lock Controls on the Format menu Follow same procedure to unlock controls

Programming with Microsoft Visual Basic 2010, 5 th Edition Assigning Access Keys 12 Access key Enables object to be selected using keyboard Key combination: Alt key + letter or number Each access key must be unique Shown in interface as underlined letter Assigning an access key Include an ampersand (&) in the control’s caption Example: “&Calculate Order” assigns ‘C’ to button

Programming with Microsoft Visual Basic 2010, 5 th Edition Assigning Access Keys (cont’d.) 13 Reasons to assign access keys Allow user to work even if mouse does not Allow fast typists to keep hands on the keyboard Allow people with disabilities that prevent them from using a mouse to be able to use application Follow Windows standards for assigning commonly used access keys

Programming with Microsoft Visual Basic 2010, 5 th Edition Controlling the Tab Order 14 Focus: State in which a control is ready to accept user input or action Pressing Tab key or access key shifts focus TabIndex property Number representing order in which control will receive focus when user presses Tab key Control with TabIndex of 0 receives focus first Set TabIndex using Properties window or Tab Order option on View menu Make a list of objects to determine proper ordering

Programming with Microsoft Visual Basic 2010, 5 th Edition Controlling the Tab Order (cont’d.) 15 Figure 2-15 TabIndex boxes showing the correct TabIndex values

Programming with Microsoft Visual Basic 2010, 5 th Edition Lesson B Summary 16 To specify control’s border Set BorderStyle property To lock/unlock controls on form Use Lock Controls option on Format menu To assign an access key to control Type an ampersand (&) in Text property of control or identifying label To set tab order Set TabIndex property to number that represents order in which you want the control to receive focus

Programming with Microsoft Visual Basic 2010, 5 th Edition True or False: The Me.Exit() method can be used to close the current form. 17

Programming with Microsoft Visual Basic 2010, 5 th Edition False 18

Programming with Microsoft Visual Basic 2010, 5 th Edition A(n) ____________________ control should be used to display text that the user cannot edit at run time. 19

Programming with Microsoft Visual Basic 2010, 5 th Edition Label 20

Programming with Microsoft Visual Basic 2010, 5 th Edition The rules of a programming language are called its ____________________. 21

Programming with Microsoft Visual Basic 2010, 5 th Edition Syntax 22

Programming with Microsoft Visual Basic 2010, 5 th Edition True or False: The Text property is only available for the label control 23

Programming with Microsoft Visual Basic 2010, 5 th Edition False 24