Resize Access Application Window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm resizing application window of my Access97 application using SetWindowPos
API call on launch of the application. It used to work perfectly on WinNT
workstation. Recently I migrated the app to XP and it started to resize to
full screen unexpectedly if the focus is moved to other application. The
application window though resizes to required size in the beginning. But if I
move focus to other app while it pulls data from split backend database the
unexpected resizing occurs. Any help would be really appreciated.
 
Mrinal,

This was answered earlier today for me. See about 20 messages down, "Force
Database Window Size".

I'm running Access 2003 and Win XP, but the code in the KB article

http://support.microsoft.com/kb/210085

worked great for me.

May be that the API changed between NT and XP...

Bruce
 
Thanks Bruce. Though the article wasn't of great help as I was already using
the API call. But I resolved my problem by restoring the application window
before forcing it to my required size.
 
Back
Top