Ver Mensaje Individual
  #8  
Antiguo 23-05-2011
Rofocale Rofocale is offline
Miembro
 
Registrado: mar 2010
Posts: 182
Reputación: 15
Rofocale Va por buen camino
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?
Responder Con Cita