Show reminder popup

  • Thread starter Thread starter Focus
  • Start date Start date
F

Focus

i have a popup reminder in the access application
when user works on another application he can not see
the reminder if it's popup's
have idea?
 
Hi,
I'm not 100% sure this will work but you can try it.
Place this code in a standard module:

Public Const HWND_TOP = 0
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Public Const SWP_NOSIZE = &H1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_SHOWWINDOW = &H40
'the line below should be all on one line!!!!
Public Declare Sub SetWindowPos Lib "user32" (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)


Then put this in the form's Load event (all on one line):
SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
 
Back
Top