private void txtCarro_SelectedIndexChanged(object sender, EventArgs e) { try { CarroDAO carroDAO = new CarroDAO(); Carro carro = carroDAO.BuscaCarro(txtCarro.Text); lbMarca.Text = carro.Marca; lbModelo.Text = carro.Modelo; } catch { } }