This chapter continues our study of GUIs. We begin our discussion with menus, which present users with logically organized commands (or options). Next, we discuss how to input and display dates and times using the MonthCalendar and DateTimePicker controls. We show how to develop menus with the tools provided by Visual Studio. We also introduce LinkLabelspowerful GUI components that enable the user to visit one of several destinations, such as a file on the current machine or a Web page, by simply clicking the mouse.
We demonstrate how to manipulate a list of values via a ListBox and how to combine several checkboxes in a CheckedListBox. We also create drop-down lists using ComboBoxes and display data hierarchically with a treeView control. You will learn two other important GUI componentstab controls and multiple document interface (MDI) windows. These components enable you to create real-world programs with sophisticated GUIs.
Visual Studio provides a large set of GUI components, several of which are discussed in this (and the previous) chapter. Visual Studio also enables you to design custom controls and add those controls to the ToolBox, as we demonstrate in the last example of this chapter. The techniques presented in this chapter form the groundwork for creating more substantial GUIs and custom controls.
Menus |
Preface
Index
Introduction to Computers, the Internet and Visual C#
Introduction to the Visual C# 2005 Express Edition IDE
Introduction to C# Applications
Introduction to Classes and Objects
Control Statements: Part 1
Control Statements: Part 2
Methods: A Deeper Look
Arrays
Classes and Objects: A Deeper Look
Object-Oriented Programming: Inheritance
Polymorphism, Interfaces & Operator Overloading
Exception Handling
Graphical User Interface Concepts: Part 1
Graphical User Interface Concepts: Part 2
Multithreading
Strings, Characters and Regular Expressions
Graphics and Multimedia
Files and Streams
Extensible Markup Language (XML)
Database, SQL and ADO.NET
ASP.NET 2.0, Web Forms and Web Controls
Web Services
Networking: Streams-Based Sockets and Datagrams
Searching and Sorting
Data Structures
Generics
Collections
Appendix A. Operator Precedence Chart
Appendix B. Number Systems
Appendix C. Using the Visual Studio 2005 Debugger
Appendix D. ASCII Character Set
Appendix E. Unicode®
Appendix F. Introduction to XHTML: Part 1
Appendix G. Introduction to XHTML: Part 2
Appendix H. HTML/XHTML Special Characters
Appendix I. HTML/XHTML Colors
Appendix J. ATM Case Study Code
Appendix K. UML 2: Additional Diagram Types
Appendix L. Simple Types
Index