adh FormResize: "ghost switching" of forms

T

tobor

Dear all

I have a problem that hopefully has as simple cause, but unfortunately
even the Access gurus at our company weren't able to help me with that
problem.

I use the resizing code of the excellent Access 2002 Desktop Developers
Handbook (adh), i.e. the FormResize, ControlResize and SectionResize
classes to size and float the controls as the form grows or shrinks.
The classes work as advertised, but with a very annoying side effect,
that makes them practically useless: Whenever a user locks and unlocks
his pc the form that was open and maximized when he locked the pc is'nt
maximized any longer and another open form that was in the background
came to front.
To make things worse this effect even happens if the user does'nt do
anything at all, at irregular time intervals (from minutes to hours)
Access switches between all open forms and leaves the last form in
restored size (that's why I called it "ghost switching" of forms).

To eliminate any possible effects of my code, I put the three class
modules in a new empty database, added two simple forms with only one
floating textbox but even then the lock/unlock and "ghost switching"
effect was there.

I read the relevant parts of the adh several times and searched the
internet for any hints but it seems that I'm the only one experiencing
this problem. Unfortunately, the adh is'nt in widespread use in
Germany, so I have very little local support.

Any help would be greatly appreciated,

Torsten

By the way, I'm using Windows XP Professional SP1 and Access 2002 MUI
SP3.
 
Top