private void btnOK_Click(object sender, EventArgs e) { ne.ApplyChanges(); Application.DoEvents(); this.Close(); }