Working with Control Properties

All the interactive, informational, and container controls inherit the properties, methods, and events of the System.Windows.Forms.Control class. This class has quite a few such members, all of which the Visual Studio Help files adequately describe. (Just look up the class name in the Help Index). A few, however, are so useful that it’s worth mentioning them here.

Achieving Positions of Control

The Position property of any control specifies the coordinates of its upper left corner. This requires both X and Y coordinates, measured in pixels and relative to the upper left corner of the control’s container. To modify the Position property in Windows Form Designer, either drag the control in the main window or modify ...

Get Faster Smarter Beginning Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.