La respuesta de
ecfisa es correcta
, como lo es esta variante:
Código:
__fastcall TForm2::TForm2(TComponent* Owner)
: TForm(Owner)
{
SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
}
Esto, directamente desde la VCL, también debería funcionar en fase de diseño o ejecución:
Código:
__fastcall TForm2::TForm2(TComponent* Owner)
: TForm(Owner)
{
FormStyle = fsStayOnTop;
}
Saludos.