Form Properties and Events

A form is like any other control: you can use the Properties window in the IDE to control its various properties. Although we don’t touch on all of them here, you should consider a few key properties as you begin your form design process.

Startup Location

You use the form’s StartPosition property to place the form’s window on the screen when it is first displayed. This property accepts a FormStartPosition enumeration value; the possible settings are documented in Table 20.1.

Image

TABLE 20.1 FormStartPosition Enumeration Values

Appearance

Given our discussion on the priority of UI design, it should come as no surprise ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.