Código Delphi [-] // en el OnkeyPress if lenght(dni.text) >=10 then Edit2.setfocus;
// en el OnkeyPress if lenght(dni.text) >=10 then Edit2.setfocus;