Hide Loading Image Dialog

D

David

Hello all,
I am trying the code on http://www.mvps.org/access/api/api0038.htm
option B... I copied the function/module and have this code on the timer
event of each form with a linked image.
The timer event is set to 200.
Private Sub Form_Timer()
Call sHideLoadingImageDialog(hWndAccessApp)
End Sub

Problem is I am getting a error when opening a form that I did not get just
before applying this technique. The Err.Description is blank. When I go to
the Visual Basic Code window, the title at the top flashes. I can not write
code as I normally do. It doesn't auto fill anything and it doesn't allow
spaces and immediately turns by typing RED.
My guess is that the timer event of 200 is firing the function to hide the
image dialog EVERY 1 second.

My linked image is a background image of the form, and will only need to be
loaded once when the form opens. I've tried putting the line to run the
function in the ON LOAD event of the form, but it's not working to remove the
progress bar.

Any suggestions?
 
R

Rob Oldfield

It's measured in milliseconds so an interval of 200 will mean it's running 5
times per second. Just try setting me.timerinterval back to 0 (i.e. don't
run)
 
S

Stephen Lebans

No...no...no. Use the Registry modification solution on the same Web page.

4. Stephen Lebans
Jan 14, 11:10 pm show options

Newsgroups: microsoft.public.access
From: "Stephen Lebans"
<[email protected]> - Find messages by
this author
Date: Sat, 14 Jan 2006 23:10:40 -0400
Local: Sat, Jan 14 2006 11:10 pm
Subject: Re: Show picture of employee from northwind database
question
Reply | Reply to Author | Forward | Print | Individual Message |
Show original | Report Abuse

If you do not stop the "Loading Image" Dialog via the Registry
modification
you will run into two issues:


1) Access can crash if you scroll through the reocrds too fast.


2) When printing a Report, Access may run out of resources and be
unable to
complete printing the report.


Additionally, two issues in regards to the Registry modification
pointed to
here http://www.mvps.org/access/api/api0038.htm


1) The Registry key MUST be "No" NOT "no" or "NO"


2) On systems with XP or on systems with more than one user account,
you
must add/modify the key in both HKEY_CURRENT_USER and
HKEY_LOCAL_MACHINE.



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top