private void BtnCodigo_Click(object sender, EventArgs e) { car = TxtCodigo.Text; LbCodigo.Items.Add(car); TxtCodigo.Text = ""; TxtCodigo.Select(); TxtCodigo.SelectAll(); }