30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

524 Graphical User Interfaces Concepts: Part 2 Chapter 13<br />

Outline<br />

13.1 Introduction<br />

13.2 Menus<br />

13.3 LinkLabels<br />

13.4 ListBoxes and CheckedListBoxes<br />

13.1 Introduction<br />

This chapter continues our study of GUIs. We begin our discussion of more advanced <strong>to</strong>pics<br />

with a frequently used GUI component, the menu, which presents a user with several<br />

logically organized commands (or options). We discuss how <strong>to</strong> develop menus with the<br />

<strong>to</strong>ols provided by <strong>Visual</strong> Studio .<strong>NET</strong>. We introduce LinkLabels, powerful GUI components<br />

that enable the user <strong>to</strong> click the mouse <strong>to</strong> be taken <strong>to</strong> one of several destinations.<br />

We consider GUI components that encapsulate smaller GUI components. We demonstrate<br />

how <strong>to</strong> manipulate a list of values via a ListBox and how <strong>to</strong> combine several checkboxes<br />

in a CheckedListBox. We also create drop-down lists using ComboBoxes and<br />

display data hierarchically with a TreeView control. We present two important GUI components—tab<br />

controls and multiple-document-interface windows. These components<br />

enable developers <strong>to</strong> create real-world programs with sophisticated GUIs.<br />

<strong>Visual</strong> Studio .<strong>NET</strong> provides a large set of GUI components, many of which are discussed<br />

in this chapter. <strong>Visual</strong> Studio .<strong>NET</strong> enables programmers <strong>to</strong> design cus<strong>to</strong>m controls<br />

and add those controls <strong>to</strong> the ToolBox. The techniques presented in this chapter form the<br />

groundwork for creating complex GUIs and cus<strong>to</strong>m controls.<br />

13.2 Menus<br />

13.4.1 ListBoxes<br />

13.4.2 CheckedListBoxes<br />

13.5 ComboBoxes<br />

13.6 TreeViews<br />

13.7 ListViews<br />

13.8 Tab Control<br />

13.9 Multiple-Document-Interface (MDI) Windows<br />

13.10 <strong>Visual</strong> Inheritance<br />

13.11 User-Defined Controls<br />

Summary Terminology Self-Review Exercises Answers <strong>to</strong> Self-Review Exercises Exercises<br />

Menus provide groups of related commands for Windows applications. Although these<br />

commands depend on the program, some—such as Open and Save—are common <strong>to</strong><br />

many applications. Menus are an integral part of GUIs, because they organize commands<br />

without “cluttering” the GUI.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!