Connecting Tech Pros Worldwide Help | Site Map

Popup window is hiding whole screen

  #1  
Old November 13th, 2005, 03:56 PM
apgoodb@yahoo.com
Guest
 
Posts: n/a
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?

  #2  
Old November 13th, 2005, 03:57 PM
Trevor Best
Guest
 
Posts: n/a

re: Popup window is hiding whole screen


apgoodb@yahoo.com wrote:[color=blue]
> 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?
>[/color]

Putting windows in the right place or Z-Order is not one of Access'
fortés 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 :-)
Closed Thread