Chapter 13. Graphical User Interface Concepts: Part I


. . .The user should feel in control of the computer; not the other way around. This is achieved in applications that embody three qualities: responsiveness, permissiveness, and consistency.

Apple Computer, Inc.

All the better to see you with, my dear.

The Big Bad Wolf to Little Red Riding Hood

. . .the wisest prophets make sure of the event first.

Horace Walpole

Objectives

In this chapter you will learn:

  • Design principles of graphical user interfaces (GUIs).

  • How to create graphical user interfaces.

  • How to process events that are generated by user interactions with GUI controls.

  • The namespaces that contain the classes for graphical user interface controls and event handling.

  • How to create and manipulate Button, Label, RadioButton, CheckBox, TextBox, Panel and NumericUpDown controls.

  • How to add descriptive ToolTips to GUI controls.

  • How to process mouse and keyboard events.

Outline

13.1 Introduction

13.2 Windows Forms

13.3 Event Handling

13.3.1 A Simple Event-Driven GUI

13.3.2 Another Look at the Visual Studio Generated Code

13.3.3 Delegates and the Event-Handling Mechanism

13.3.4 Other Ways to Create Event Handlers

13.3.5 Locating Event Information

13.4 Control Properties and Layout

13.5 Labels, TextBoxes and Buttons

13.6 GroupBoxes and Panels

13.7 CheckBoxes and RadioButtons

13.8 PictureBoxes

13.9 ToolTips

13.10 NumericUpDown Control

13.11 Mouse-Event Handling

13.12 Keyboard-Event Handling

13.13 Wrap-Up



Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net