画面を切り替えたForm
後、フォームを中央に配置したいとします。どうすればタスクを実行できますか?
internal static void SetFormToBiggestMonitor(Form form, bool center = true)
{
Screen biggestScreen = FindBiggestMonitor();//assume this works
form.Location = biggestScreen.Bounds.Location;
if (center)
{
form.StartPosition = FormStartPosition.CenterScreen;
}
}