private void btnAction_Click(object sender, EventArgs e) { var action = new FormAction(); action.ShowDialog(); txtProductionID.Focus(); txtProductionID.SelectAll(); }