472,811 Members | 1,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

Custom form with animation during time-consuming processing

My application has a lot of complicated SQL statements, calculations,
processing that takes time. I've created a custom form to act like a
messagebox. It has 10 small rectangles on it that change color sequentially
to let the user know that processing is occurring. This 'animation' occurs
via the form timer event.

However, I'm having trouble getting the animation to occur for all types of
processing events. It appears that I have to add DoEvents to the complex
processing code so that Access takes the time to update the 'animation'
occuring on the custom message box.

If the code that is running has a loop that is causing most of the slow
processing, then adding DoEvents to the loop works quite well and the
animation proceeds nicely.

But if it doesn't or is spread out over a lot of different types of
processing, then DoEvents doesn't work so well.

How do I keep the animation on the custom form showing when the processor is
off running calculation intensive processes.

--
Message posted via http://www.accessmonster.com

Sep 14 '06 #1
2 5723
On Thu, 14 Sep 2006 02:26:09 GMT, "rdemyan via AccessMonster.com"
<u6836@uwewrote:

You can't. Live with it.
You need a multithreaded environment to support this. Access isn't one
of them.

-Tom.
>My application has a lot of complicated SQL statements, calculations,
processing that takes time. I've created a custom form to act like a
messagebox. It has 10 small rectangles on it that change color sequentially
to let the user know that processing is occurring. This 'animation' occurs
via the form timer event.

However, I'm having trouble getting the animation to occur for all types of
processing events. It appears that I have to add DoEvents to the complex
processing code so that Access takes the time to update the 'animation'
occuring on the custom message box.

If the code that is running has a loop that is causing most of the slow
processing, then adding DoEvents to the loop works quite well and the
animation proceeds nicely.

But if it doesn't or is spread out over a lot of different types of
processing, then DoEvents doesn't work so well.

How do I keep the animation on the custom form showing when the processor is
off running calculation intensive processes.
Sep 14 '06 #2
>How do I keep the animation on the custom form showing when the
>processor is off running calculation intensive processes.
You could try using an AVI animation displayed by an Animation Control
on the form. I have used the freeware animation control from CCRP
(http://ccrp.mvps.org/) in the past with good success.
Gord
rdemyan via AccessMonster.com wrote:
My application has a lot of complicated SQL statements, calculations,
processing that takes time. I've created a custom form to act like a
messagebox. It has 10 small rectangles on it that change color sequentially
to let the user know that processing is occurring. This 'animation' occurs
via the form timer event.

However, I'm having trouble getting the animation to occur for all types of
processing events. It appears that I have to add DoEvents to the complex
processing code so that Access takes the time to update the 'animation'
occuring on the custom message box.

If the code that is running has a loop that is causing most of the slow
processing, then adding DoEvents to the loop works quite well and the
animation proceeds nicely.

But if it doesn't or is spread out over a lot of different types of
processing, then DoEvents doesn't work so well.

How do I keep the animation on the custom form showing when the processor is
off running calculation intensive processes.

--
Message posted via http://www.accessmonster.com
Sep 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JC Carette | last post by:
Hello I am experiencing extremely long time for loading a windows form in my Visual C++ .NET project This Windows form has just 40 labels, 4 checkBoxes, 2 buttons and 11 numericUpDown. It takes...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
3
by: weston | last post by:
I'm making a foray into trying to create custom vertical scrollbars and sliders, and thought I had a basic idea how to do it, but seem to be having some trouble with the implementation. My...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
1
by: mdos | last post by:
Hi All: I'm pushing real-time updates to a browser via 'comet using inline JS in an iframe. I'd like to get rid of the 'busy' animation during these sessions. Short of re-coding everything to...
1
by: TrueEmpath | last post by:
I'm trying to create a simple custom control that displays an animation composed of separate image files. However, I'm having trouble with how exactly I use the imported images with the control. When...
1
by: Martijn Mulder | last post by:
I am looking for a C# .NET 2.0 tutorial on animation techniques, especially the difficult subject of Invalidating() the smallest possible area on the screen and the proper way to set things up.
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.