namespace PictureMover { public partial class MainForm : Form { private readonly CoverForm _form2; public MainForm() { InitializeComponent(); _form2 = new CoverForm(this); } private void Form_Shown(object sender, EventArgs e) { _form2.Show(this); Enter += Form_Enter; } private void Form_Enter(object? sender, EventArgs e) => _form2.Focus(); } }