Ver Mensaje Individual
  #5  
Antiguo 16-05-2006
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
Cita:
Empezado por Api de Windows

SetForegroundWindow

The foreground window is the window at the top of the Z order. It is the window that the user is working with. In a preemptive multitasking environment, you should generally let the user control which window is the foreground window. However, an application can call SetForegroundWindow if it wants to put itself into the foreground to display a critical error or information that requires the user's immediate attention. A good example is a debugger when it hits a breakpoint.
Código Delphi [-]
  applicationCreateform(TventanaModal,VentanaModal);
  SetForegroundWindow(Application.Handle);
  Application.ProcessMessages;
  Ventanamodal.Showmodal;
  Ventanamodal.free;

Saludos.
__________________
Si usted entendió mi comentario, contácteme y gustosamente,
se lo volveré a explicar hasta que no lo entienda, Gracias.
Responder Con Cita