private void btnScreenTearingTest_Click(object sender, EventArgs e) { using (ScreenTearingTestForm screenTearingTestForm = new ScreenTearingTestForm()) { screenTearingTestForm.ShowDialog(); } }