.NET Framework 4.6 and 4.5
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Centers the form on the current screen.
protected void CenterToScreen()
Do not call this directly from your code. Instead, set the StartPosition property to CenterScreen.
The CenterToScreen method uses the following priority list to determine the screen used to center the form:
The Owner property of the form.
The HWND owner of the form.
The screen that currently has the mouse cursor.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1