Full Version: Minimise Access Window
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
gavinclarke
Hi,

Just playing around a bit with User Interfaces,

I found code (from a link here in UA I think) that will minimise the main Access Window and just show my form on the Desktop
API Manipulate Access Window

However I get an error (defined in code) when i use it (running code from the forms Open Event, form has been set to popup)

Has anybody else used this? The error is occuring because there is no active form open at the time the Open Event is called....
bekibutton
I use it for a desktop clock and have

Popup: Yes
Modal: No
Border: No

and it's set to run on the OnLoad rather than OnOpen event. Hopefully some of that helps!

Becki
gavinclarke
that's the same settings i've got, and i've tried it in the OnLoad event (had tried this originally..)

but still getting the error msg - Cannot hide Access unless a form is on screen...

any other properties i might be missing?
bekibutton
I just noticed I'm not using Hide but ShowMinimized (not entirely sure what the difference is...)

The code I'm using in the OnLoad event is

fSetAccessWindow SW_SHOWMINIMIZED
Aquadevel
Becki,

"Hide" is totally 'hidden', not shown on the task bar. "Minimized" will land on the task bar/bottom of window.
At least thats how they are here.

Ok, that was my 2 1/2 cents worth. sad.gif

Aqua
gavinclarke
that did it ok, thanks for that!

One other point while im at it, my login form works fine now with the access window minimised, however when i open my main switchboard (and apply the minimised function) the Windows Task Bar & System Tray are covered by the switchboard form, is there a way I can get this to still appear 'on top' of the database form?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.