APPendix B Control Summary
❘
479
Control PurPose
MaskedTextBox
Similar to a TextBox except it displays an input mask to prompt
the user and restrict entry. For example, a telephone mask might
look like (___)-___-____.
MenuStrip
A form’s main menu.
MessageQueue
Provides tools for creating and interacting with message queues
(
System.Messaging namespace).
MonthCalendar
Allows the user to select a date or date range from a calendar.
NotifyIcon
Displays an icon in the notification area or system tray (usually
on the right end of the taskbar). Can provide a context menu,
and the program can use the icon to indicate status to the user.
NumericUpDown
Displays a spin box (up-down control) that lets the user pick a
numeric value.
OpenFileDialog
A dialog that lets the user select a file for opening. Can require
that the file actually exists.
PageSetupDialog
A dialog that allows the user to define printer page settings,
such as margins and printout orientation.
Panel
A simple container that holds other controls. Set AutoScroll
= true to make the
Panel automatically display scrollbars if
needed. (This is its coolest feature!)
PerformanceCounter
Provides access to Windows NT performance counters
(
System.Diagnostics namespace).
PictureBox
Displays an image. The SizeMode property determines how
the image is sized and can take the values
Normal (clip the
image if it doesn’t fit),
StretchImage (make the image fit
the
PictureBox even if that distorts it), AutoSize (size the
PictureBox to fit the image), CenterImage (center the image,
clipping it if it is too big), and
Zoom (make the image as large as
possible without distorting its shape).
PrintDialog
A dialog that allows the user to select a printer, set printer prop-
erties, and pick the pages to print.
PrintDocument
Represents a printed document. Catch the PrintPage event to
generate output.
PrintPreviewControl
Displays a preview of a PrintDocument in a control.
PrintPreviewDialog
Displays a preview of a PrintDocument in a dialog.
continues
596906bapp02.indd 479 4/7/10 12:35:32 PM