'nella stessa pagina inserisci questo codice Private Declare Function SetWindowPos Lib "user32.dll" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _ ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long Private Const HWND_TOPMOST As Long = -1 Private Const SWP_NOMOVE As Long = &H2 Private Const SWP_NOSIZE As Long = &H1 ' e nel form inserisci questo comando con il nome del file che deve restare in primo piano ' funziona su RPTMenuCreaReport '************************************************************************************************************* SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE '************************************************************************************************************* |