private void cmbCodMotivo_TextChanged(object sender, EventArgs e) { if (cmbCodMotivo.Text == "") { txtDescMotivo.Text = null; return; } liteBd.AbrirConexao(); txtDescMotivo.Text = liteBd.ConsultaScalar("SELECT DESC FROM Motivo_Ruptura WHERE tipo_ruptura = '" + cmbTipoRuptura.Text + "' and COD_MOT = " + cmbCodMotivo.Text); liteBd.FecharConexao(); }