Popup window is hiding whole screen

Popup window is hiding whole screen

Post by apgood » Thu, 27 Oct 2005 00:26:04


I have an application that uses various popup forms. All of these
forms are maximized when open. When they open you can see the windows
start button and quicklaunch toolbar, but after a minute or so, the
popup form takes over the whole screen and the user can't get to the
quicklaunch toolbar without closing down. Any ideas what is causing
this?
 
 
 

Popup window is hiding whole screen

Post by Trevor Bes » Thu, 27 Oct 2005 10:49:13


Putting windows in the right place or Z-Order is not one of Access'
fort is it?

Make it as big without maximizing
---- code start ----
' not tested yet.
Declare Function WinAPI_MoveWindow Lib "user32" Alias "MoveWindow"
(ByVal hWnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As
Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long

Sub MaxForm(pfrm As Form)
Const SM_CXMAXIMIZED = 61
Const SM_CYMAXIMIZED = 62

WinAPI_MoveWindow(pfrm.hWnd, 0, 0, SM_CXMAXIMIZED , SM_CYMAXIMIZED , 1)
End Sub
---- code end ----

or...

Use Windows key (or Ctrl+Esc) to get to the task bar :-)