Código
public void cargarCampos(DataTable dt) { int inicio; txtcodigo.Text = f.formatoCodigo(dt.Rows[0].ItemArray[0].ToString()); txtdireccion.Text = dt.Rows[0].ItemArray[2].ToString(); tipo = Convert.ToInt32(dt.Rows[0].ItemArray[1].ToString()); //aquí esta el tipo de empleado try { cmbtipo.DataSource = mostrar.cargar("carga_tipos").Tables[0]; cmbtipo.ValueMember = "Codigo"; cmbtipo.DisplayMember = "Tipo"; }//try catch (Exception ex) { MessageBox.Show("Error en la peticion " + ex.Message + " Intentelo nuevamente"); }//catch() }