private void kryptonCheckBox1_Click(object sender, EventArgs e) { if (ckbCompleto.Checked) { this.Visible = false; FormSenhaSped frm = new FormSenhaSped(); frm.ShowDialog(); if (frm.bSenhaValida) { configConnectionFirebirdSpedContabil.Visible = ckbCompleto.Checked; configConnectionContmatic.Visible = ckbCompleto.Checked; } else { ckbCompleto.Checked = false; } this.Visible = true; } else { configConnectionFirebirdSpedContabil.Visible = ckbCompleto.Checked; configConnectionContmatic.Visible = ckbCompleto.Checked; } }