すべてのフォームのスタイルを一度に変更できるようにしたいオプション メニューにボタンがあります。現時点では、「this」を使用したため、オプション メニュー自体にのみ適用されます。
private void Fullscreen_toggle_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Normal;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Bounds = Screen.PrimaryScreen.Bounds;
}
private void Windowed_toggle_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
}
これをグローバルに適用する方法はありますか?