GetActiveWindow() returns a Long... So I'm guessing that's not it.
I've got a routine that I can feed a Form pointer to and which looks up the
user's last size/position for that form and sets the form to same.
Just added an option to have the app open this particular window instead of the
"Home" window at startup. If/when that option is invoked, I'd like to maximize
the window in question and the re-size the resulting MS Access parent window to
what the user had the child window set to the last time it was used (stored in
the .INI file already...).
--
PeteCresswell