Windows Forms
topic How do I center a form?
issue I have frequently written code to center a form on a screen. Is there an easier way?
applies to Visual Studio .NET

You can use the StartPosition property of a form in the Properties window (or in code) to define that a form should be positioned centered on the screen or centered on a parent form. Or, you can define that the form should be positioned in its Windows default location, which will place the form shifted slightly down and to the right of the last displayed form.

All contents © 2004 InStep Technologies, Inc. All rights reserved.