Link to home
Start Free TrialLog in
Avatar of Gary Samuels
Gary SamuelsFlag for United States of America

asked on

Transparent Access Window?

I have a small form which is always open on the desktop. The Access window is just a little larger than the form so you can always see the form and it takes up a minimal amount of the desktop. The idea is to run other applications on the desktop while still being able to see the Access form.

Is there a way that I can set the Access window to the maximum window size and then set the background of the window to transparent?
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can try the following:  http://www.mvps.org/access/api/api0019.htm

I have used this in the past to hide the Access frame, but it is best used for very simple applications that don't have multiple forms.

What I have found is that you have to set your forms PopUp and Modal properties to Yes.  Then, I generally use the timer event of the form, with the timer interval set at 2000, to make sure the form has loaded before calling the code that hides the window.

You also need to make sure you have very good error handling, and in that error handling, you make the Access window visible again.  If you fail to do this, the only way to handle errors will be to use the TaskManager to shut down Access.
After you hide the Access window in the Timer event, make sure to change the TimerInterval back to zero.
Avatar of Gary Samuels

ASKER

Great stuff. I saw a better solution than trying to hide the window.

Thanks
>>I saw a better solution than trying to hide the window.

Which was?