Código Delphi
[-]
agregar;
Total;
txtCodigo.Clear;
txtDescripc.Clear;
txtPrecio.Clear;
txtCantidad.Clear;
btnAgregar.Enabled := False;
btnEliminar.Enabled := True;
btnPagar.Enabled := true;
txtcodigo.setfocus
bueno lo solucione quitando txtcodigo.setfocus eso producia el bucle infinito.. pero ahora como puedo hacer para que al agregar este me devuelva el focus al edit
osea pongo el codigo y apreto enter busca y pone el focus en el boton apreto enter llena el grid.. y aqui tiene que devolver el focus al edit... ya que no devuelve el focus al edit...
sugerencias?