O'Reilly logo

Visual Basic® 2010 Programmer's Reference by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Useful Control Properties, Methods, and Events

A control interacts with a program or the user through properties, methods, and events. Although each type of control provides different features, they are all derived from the Control class. This class provides many useful properties, methods, and events that other controls inherit, if they don't take special action to override them. The following sections describe some of the most useful of these inherited features.

PROPERTIES

The following table lists properties implemented by the Control class. All controls that inherit from this class inherit these properties unless they override the Control class's behavior.

PROPERTY

PURPOSE

AllowDrop

Determines whether the control allows drag-and-drop operations.

Anchor

Determines which of the control's edges are anchored to the edges of the control's container.

AutoSize

Determines whether the control automatically resizes to fi t its contents.

BackColor

Determines the control's background color.

BackgroundImage

Determines the control's background image.

BackgroundImageLayout

Determines how the control's background image is used to fill the control. This can be Center, None, Tile, Stretch, and Zoom.

Bottom

Returns the distance between the top edge of the control's container and the bottom edge of the control. This is read-only. Modify the Top and Height properties to change this value. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required