private void ButtonFlexGridClick(object sender, EventArgs e) { using (var dlg = new FlexGridForm()) { dlg.ShowDialog(this); } }