VB.NET GUI Components Overview

Similar documents
Solutions from SAP. SAP Business One 2005 SP01. User Interface. Standards and Guidelines. January 2006

UML for C# Modeling Basics

PHP Code Design. The data structure of a relational database can be represented with a Data Model diagram, also called an Entity-Relation diagram.

Introduction to Visual Basic and Visual C++ Introduction to Control. TextBox Control. Control Properties. Lesson 5

Database Forms and Reports Tutorial

Acrobat X Pro Accessible Forms and Interactive Documents

6. If you want to enter specific formats, click the Format Tab to auto format the information that is entered into the field.

BUILDING APPLICATIONS USING C# AND.NET FRAMEWORK (OBJECT-ORIENTED PROGRAMMING, X428.6)

8 CREATING FORM WITH FORM WIZARD AND FORM DESIGNER

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Creating tables of contents and figures in Word 2013

How to Develop Accessible Linux Applications

Asset Track Getting Started Guide. An Introduction to Asset Track

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Microsoft Excel 2010 Part 3: Advanced Excel

During the process of creating ColorSwitch, you will learn how to do these tasks:

How to use PGS: Basic Services Provision Map App

Microsoft Word Level 3

Using Microsoft Word to Create Your Theses or Dissertation

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Creating Accessible Word Forms. Contents. Introduction

MS Word 2007 practical notes

Adobe Acrobat 9 Pro Accessibility Guide: Creating Accessible Forms

Databases: Creating a user interface using Access

Getting Started with Sites at Penn State

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide

Form Builder Manual. A brief overview of your website s Form Builder with screenshots.

Chapter 15 Using Forms in Writer

Writer Guide. Chapter 15 Using Forms in Writer

bbc Creating a Purchase Order Form Adobe LiveCycle Designer ES2 November 2009 Version 9

Working with Video in PowerPoint 2010

Logi Ad Hoc Reporting Report Design Guide

UF Health SharePoint 2010 Introduction to Content Administration

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL

Microsoft Office PowerPoint 2013

Customization Manager in Microsoft Dynamics SL 7.0

Using Excel Forms. The Industrial-Organizational Psychologist 61

How to Create User-Defined Fields and Tables

Contents. Release notes: February 2014 SC

AODA Mouse Pointer Visibility

Terms and Definitions for CMS Administrators, Architects, and Developers

Adobe Acrobat: Creating Interactive Forms

Access Tutorial 6: Form Fundamentals

Qualtrics Survey Tool

Creating Custom Crystal Reports Tutorial

The Essential Guide to User Interface Design An Introduction to GUI Design Principles and Techniques

Editors Comparison (NetBeans IDE, Eclipse, IntelliJ IDEA)

Working with Spreadsheets

DNNCentric Custom Form Creator. User Manual

Java Application Developer Certificate Program Competencies

Module 9. User Interface Design. Version 2 CSE IIT, Kharagpur

Working with sections in Word

CSCI 253. Object Oriented Programming (OOP) Overview. George Blankenship 1. Object Oriented Design: Java Review OOP George Blankenship.

WinCC. Configuration Manual. Manual Volume 2

Introduction to Microsoft Word 2003

Visual Studio 2008 Express Editions

FreeWave Launches FreeWave CommControl, the most sophisticated, Windows-based network management software available

COGNOS 8 Business Intelligence

Designing and Implementing Forms 34

BID2WIN Workshop. Advanced Report Writing

Lab Manual: Using Rational Rose

Handout: Creating Forms in Word 2010

Introduction to the Visual Studio.NET IDE

Logi Ad Hoc Reporting Report Design Guide

USER GUIDE. Unit 2: Synergy. Chapter 2: Using Schoolwires Synergy

Click on various options: Publications by Wizard Publications by Design Blank Publication

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

Embedded BI made easy

FastTrack Schedule 10. Tutorials Manual. Copyright 2010, AEC Software, Inc. All rights reserved.

Microsoft Outlook Tips & Tricks

Adobe InDesign Creative Cloud

MAKE A NEW SUBSITE 1. On the left navigation, click Site Contents (or Sites). Scroll down to subsites. Click new subsite.

Agile Software Development

NDA ISSUE 1 STOCK # CallCenterWorX-Enterprise IMX MAT Quick Reference Guide MAY, NEC America, Inc.

TUTORIAL 4 Building a Navigation Bar with Fireworks

Creating Forms with Acrobat 10

Getting Started Guide. Chapter 14 Customizing LibreOffice

Technology Training Services. Microsoft Word 2010 Creating Forms

Reviewing documents with track changes in Word 2013

CHAPTER 7 Expected Outcomes

DATA MINING TOOL FOR INTEGRATED COMPLAINT MANAGEMENT SYSTEM WEKA 3.6.7

TheFinancialEdge. Crystal Reports Tutorial

Microsoft PowerPoint 2010 Handout

Creating Fill-able Forms using Acrobat 8.0: Part 1

Quick Help Guide (via SRX-Pro Remote)

KEYBOARD SHORTCUTS. Note: Keyboard shortcuts may be different for the same icon depending upon the SAP screen you are in.

Logi Ad Hoc Reporting System Administration Guide

GUIDELINES FOR PREPARING POSTERS USING POWERPOINT PRESENTATION SOFTWARE

Introduction To Microsoft Office PowerPoint Bob Booth July 2008 AP-PPT5

Creating forms in Microsoft Access 2007

XHTML Forms. Form syntax. Selection widgets. Submission method. Submission action. Radio buttons

This guide shows you how to configure each display option within the item editor.

Creating Interactive PDF Forms

Creating Basic HTML Forms in Microsoft FrontPage

Grand Valley State University Disability Support Services Guide to Assistive Technology

Schema Classes. Polyhedra Ltd

Access Tutorial 8: Combo Box Controls

How to create pop-up menus

Crystal Reports. For Visual Studio.NET. Designing and Viewing a Report in a Windows Application

Intro to Excel spreadsheets

Transcription:

Chapter 10 Objectives GUI Components Overview In this chapter, you will: Learn about the GUI classes in Understand the code generated by Handle events Work with additional GUI controls 1 2 Introducing the GUI Classes in Introducing the GUI Classes in Form Instance of the Form class Consists of GUI controls, such as Buttons Labels Text boxes Check boxes Radio buttons Tab pages Menu items Form class Member of the System.Windows.Forms namespace 3 4 Introducing the GUI Classes in Component class Base class for all GUI components An instance of a component does not have a visible, graphical representation Control class A subclass of Component An instance of a control has a visible, graphical representation Understanding the Code Generated by Actions involved in visual programming Creating a form Setting properties of the form Adding controls and components to the form Setting properties of controls and components Adding the code to handle events As the programmer adds controls and modifies properties, generates the code 5 6

FormDemo program Contains A label A button When the button is pressed, a message box appears FormDemo class An instance of Form Inherits methods from ContainerControl ScrollableControl Control Component 7 8 FormDemo class definition Specifies that the FormDemo class inherits from the Form class Defines the constructor Defines the Dispose method Dispose method is a destructor Releases system resources when the program ends FormDemo class definition (Continued) Declares an instance of the IContainer class IContainer: an interface that provides functionality for containers Container: an object that holds other components Declares controls that were created visually in Design window 9 10 Handling Events FormDemo class definition (Continued) Defines the InitializeComponent method InitializeComponent method Instantiates the label and button instances Calls the SuspendLayout method Sets the properties of the label, button and form instances Defines the event handler GUI controls have associated event procedures The process of creating event procedures Double-click a control in the Forms Designer window inserts the method header for the most commonly used event procedure for that control Supply details that determine how the procedure responds to the event 11 12

Working with Additional GUI Controls Working with Additional GUI Controls Look and feel Style and appearance of each form in an application Design goals Consistent look and feel for all the forms Ease of use Purpose of each control should be intuitive to the user Layout of the form should be intuitive to the user Design goals (Continued) Feedback to the user about Completion of actions For example: adding a record to a file Data entry errors Minimize the keystrokes required by the user Reduces the chance of data entry errors Makes forms easier to use 13 14 Working with Additional GUI Controls Working with Additional GUI Controls Naming conventions for program variables Benefits Improve program readability Facilitate program maintenance Standards Developed at the outset of a project Enforced rigorously throughout the development process Deal with Form design Variable naming conventions 15 16 Reviewing Forms, Buttons, and Labels Using Text Boxes and Combo Boxes GUI controls Subclasses of the Control class Inherit properties, methods, and events from the Control class Have additional methods and properties Help facility Contains information about the methods and properties of GUI controls Text boxes Display textual information to the user Enable input of text from the keyboard Functionality provided by the TextBox class Combo boxes Extend the functionality of a text box Allow the user to: Type a value Select an item from a predetermined list of values Functionality provided by the ComboBox class 17 18

Using Text Boxes and Combo Boxes Using Check Boxes and Radio Buttons Check boxes and radio buttons Provide the ability to select from options Have two states at any given point in time Checked (selected) Not checked (not selected) Functionality provided by the CheckBox and RadioButton classes 19 20 Using Check Boxes and Radio Buttons Using Check Boxes and Radio Buttons A check box Appears as a small white box Usually includes a label that identifies its purpose The caption (or label) is set by the Text property When selected A check mark appears in the box Multiple check boxes There is no requirement that any check box be checked Any or all of the check boxes may be checked simultaneously Radio buttons Appear as small white circles Have captions (or labels) that identify their purpose When selected A black dot appears within the circle A group of radio buttons Represents a set of related options Options are mutually exclusive: one and only one of the options may be selected at any given time 21 22 Using Group Boxes and Panels Using Group Boxes and Panels Group boxes and panels Containers used to visually and logically organize groups of related controls A group box Includes a border (or frame) Does not include scroll bars Usually has a caption A panel Does not include a border by default May include scroll bars Does not have captions Nested panels and group boxes A group box or panel may contain other group boxes or panels 23 24

Using Group Boxes and Panels A common use of group boxes and panels Can be used to group a set of radio buttons Mutually exclusive behavior is enforced separately for each group Using List Boxes and Checked List Boxes List boxes and checked list boxes Provide the ability to select one or more items from a predetermined list of values List boxes Instances of the ListBox class Enable the user (by default) to select one item from the list Selection of multiple list items can be enabled by setting the SelectionMode property 25 26 Using List Boxes and Checked List Boxes Using Tree Views and Tree Nodes Checked list boxes Instances of the CheckedListBox class Include a check box to the left of each item in the list By default, allow the selection of multiple items in the list When an item is selected A check mark appears in the corresponding check box A tree view Supported by the TreeView class Displays a group of hierarchically related items An item (or tree node) Represented as an instance of the TreeNode class Appears as an expandable outline 27 28 Using Tree Views and Tree Nodes Using Date/Time Pickers A date/time picker control An instance of the DateTimePicker class Used to Select a date and time from a calendar Display the date and time in a number of different formats 29 30

Using Date/Time Pickers Using Tab Controls and Tab Pages A tab control An instance of the TabControl class Provides the functionality for a set of tab pages Tab pages are useful when A form requires a large number of controls Those controls can easily be grouped into logical subsets 31 32 Using Tab Controls and Tab Pages Using Main Menus and Menu Items Each tab page An instance of the TabPage class (a subclass of Panel) Contains A subset of the controls A tab identifying its purpose MainMenu and MenuItem classes Used to create a set of menus and submenus for a form Main menu control Container for the menu structure Menu items Represent individual menu choices within the menu structure 33 34 Summary Summary Component is a superclass of all GUI classes Control is a superclass of all visible components Forms are containers for other components Text boxes can be used to display and input data Combo boxes can be used to Display and input text Select from a predefined list of values Check boxes and radio buttons enable users to select (deselect) from a list of options Tree views and tree nodes display a group of hierarchically related data Date/time pickers enable users to select a date from a calendar Tab controls and tab pages are useful when a form requires a large number of controls Main menus and menu items allow you to create a set of menus and submenus 35 36