Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.

Slides:



Advertisements
Similar presentations
Copyright 2002, Paradigm Publishing Inc. CHAPTER 23 BACKNEXTEND 23-1 LINKS TO OBJECTIVES Form Concepts Creating the Form Template Creating the Form Template.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Chapter 26. Copyright 2003, Paradigm Publishing Inc. CHAPTER 26 BACKNEXTEND 26-2 LINKS TO OBJECTIVES Create a Form Template Create a Form Template Fill.
With Microsoft ® Word e © 2013 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Word.
Chapter 2 More Controls Programming In Visual Basic.NET.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 2 More Controls.
IS 1181 IS 118 Introduction to Development Tools VB Chapter 03.
Introducing More Controls Text boxCheck box Option button Command button frame image.
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-
Introduction to Computing Dr. Nadeem A Khan. Lecture 11.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab2 Managing Controls.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 4 Image Slides.
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall1 with Microsoft ® Office for Mac 2011 Chapter 1 Creating Documents with Microsoft Word for Mac.
110-C1 Chapter 2 of the text: _ text boxes, group boxes, check boxes, radio buttons, picture boxes _ defining access keys tab sequence setting the focus.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 Image Slides.
Access Ch 5 Review.
Controls General Discussion. VB Controls Visual Basic Controls A control is the generic name for any object placed on a form Controls may be images,
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
Working with Layouts and Graphics. 1. The layout of a slide can be changed at any time during the creation of the presentation. 2. Various types of slide.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter 2 User Interface Design Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Chapter 14. Copyright 2003, Paradigm Publishing Inc. CHAPTER 14 BACKNEXTEND 14-2 LINKS TO OBJECTIVES Add Borders with Borders Button Add Borders with.
Chapter 2 More Controls Programming in C#. NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 2 - More Controls More controls – Text boxes - used for user input – Frames - containers to group items – check boxes - user select an option -
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Chapter Two Designing Applications Programming with Microsoft Visual Basic th Edition.
CHAPTER TWO Creating Simple Visual Basic.NET Windows Applications.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
IS437: Spring 2006 Instructor: Dr. Boris Jukic Controls.
Chapter Two Creating a First Project in Visual Basic.
Chapter 2 P. 1 Introducing more controls (on the Toolbox) (Fig. 2.1) - Text box - Frame - Option button - Check box - Image Example P. 44 Figure 2.2 Message.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 16 Image Slides.
CHAPTER:07 JAVA IDE PROGRAMMING-II Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
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.
CSC115 Introduction to Computer Programming Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
More User Interface Controls User interface controls are located in the toolbox. Click the +/- signs to open/ close the different tabs of the tollbox.
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 User Interface Design.
2-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 2 User Interface Design.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 2 More Controls.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
More Form Tools Combo Box (displays a list) Check Box (yes/no) Frame (groups option buttons) Option Button (exclusive choice) Ref Edit (user selects cells)
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter 7 - Lists, loops and printing w List boxes and combo boxes several types can add items at design time or during run time user select from predefined.
VB Objects & Events (Exercises) School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Friday 1/31/2003)
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.
Chapter 20. Copyright 2003, Paradigm Publishing Inc. CHAPTER 20 BACKNEXTEND 20-2 LINKS TO OBJECTIVES Create, Format, and Customize Drawn Objects Create,
Chapter 2 More Controls Programming in C#. NET Objectives Use text boxes, group boxes, check boxes, radio buttons, and picture boxes effectively.
PowerPoint Ch 4 Review. When you point to a hyperlink, the mouse pointer changes to a(n) __________? Hand.
TOOLBOX. The Toolbox Intrinsic Controls - always included in the Toolbox ActiveX Controls - separate files with ocx file extension Insertable Objects.
Chapter 28. Copyright 2003, Paradigm Publishing Inc. CHAPTER 28 BACKNEXTEND 28-2 LINKS TO OBJECTIVES Table Calculations Table Properties Fields in a Table.
Introduction to Computing
Topic one text label Topic two text label Topic three text label
Chapter 4 Enhancing the Graphical User Interface
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San Diego

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Ch. 2: More Controls  Introducing more controls  Working with multiple controls  Designing your applications for user convenience  Coding for the controls  Programming hints

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Introducing More Controls  Labels: lblName.Caption=txtName.Text  Text boxes: txtName.Text=“French”  Frames: Groups option buttons  Check boxes: chkName.Value=0, 1 or 2.caption is name  Option buttons: optButton.value=True or False  Images

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Tools Introduced in Chapter 2 Check box Frame Shape Image Option button Text box Line

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Text Boxes  Default property is.Text –txtLastName = “Frockmeister” sets.Text prop.  Alignment property –0 (left) –1 (right) –2 (center)  The Multiline property must be true, otherwise the alignment is ignored.

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Frames  Frames are containers for option buttons and check boxes  Frames establish the mutually exclusive nature of buttons: Frame Option buttons

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Check Boxes  Select or deselect Yes/No options  Default property is.Value  Example: chkPrint.Value = 0 (no)  0 = no, 1 = yes (checked), 2=disabled check box

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Option Buttons  Used for mutually exclusive choices such as color choices or Print All, Print Selection, or Print One Page  Default property is.Value (0 or 1)  Names: optBlue, optFontSize Option buttons

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Images  An image holds a picture (not an OLE object)  Properties: –.Picture (the file name of an image to display) –.Stretch (picture fills control) –.Visible (true/false makes it appear/disappear)  Example: imgFlag.Visible = False

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Shape Control  Shape control places rectangles, squares, ovals, circles, or other shapes on a form  Shape is determined by.Shape property Shape property value

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Line Control  Draw lines on a form to separate elements  Name example: linLogo  A Line has very few properties: –BorderStyle –BorderWidth –BorderColor

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Working with Multiple Controls  Selecting multiple controls  Deselecting a group of controls  Moving controls as a group  Setting properties for multiple controls  Aligning controls

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Designing Your Applications for User Convenience  Designing the user interface  Defining keyboard access keys (Exit)  Setting command button Default and Cancel properties.Default = True or False.Cancel = True or False  Setting the tab order property of controls –TabStop property (.Enabled = yes) –TabIndex property (a value beginning at 0)

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Coding for the controls  Clearing text boxes and labels  Resetting the focus  Setting option buttons/check boxes value properties  Changing the font  Properties of controls  Changing multiple properties of a control  Continuing program lines

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Controls' Default Properties  Each control has a default property  A default property is the implied property for the object if you omit it following the object: –txtAddress = "1234 Somewhere Street" –chkPrint = True –lstChoice(index) = "14"

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Programming hints  Check the tab order of an application  Use the value property of a check box or option button to set other true/false properties.  Ctrl-click a tool to repeatedly use tool  Create an option button inside its frame  Label controls are “read only” messages  Text controls are input/output controls

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Review Questions - 1 of 2  See the "notes" portion of this slide to see the review questions

Copyright© 2000 by the McGraw-Hill Companies, Inc.Irwin/McGraw-Hill Review Questions - 2 of 2  See the "notes" portion of this slide to see the review questions -END OF CHAPTER-