Re: VB6 Application Overwhelmed by Rapid User Interaction
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 12:46:38 -0500
"Joseph Geretz" <jgeretz@xxxxxxxxxx> wrote
If the user clicks reasonably, or even moderately quickly from entry to
entry the application behaves fine. However if the user will 'attack' the
interface by scrolling rapidly up and down the grid from entry to entry, up,
up, up, down, down, down, up, up, up, down, down, down etc. in rapid
succession, the application will throw an unanticipated application failure;
I've tried a couple of approaches to try to clear the keyboard buffer prior
to re-enabling the form, but noeither of these seem to work.
I appreciate any advice which you can provide.
In another post you state:
While that flag is true, any keystrokes received by the grid are
simply discarded.
Does that mean that the user is held back from advancing too fast?
I was just going to mention another approach that would allow the
user to move the focus to the row they want, at the speed they
want.
If, instead of calling the DB and web page on a row change, you
store the new row index in a queue, you could use a timer to read
the queue and display the data. That way the user is simply filling
a queue which can happen rapidly, and not overwhelm the system.
The trick to keeping up with the user is, in the timer event, where
you are going to get and show the data, you check the size of the
queue. If the queue has more than one item, remove all but the last
one and use that.
The timer could be set at a rate that will not overwhelm the system,
so that no matter how fast the user types, the data is called up at
a moderate pace....
LFS
.
- Follow-Ups:
- Re: VB6 Application Overwhelmed by Rapid User Interaction
- From: Joseph Geretz
- Re: VB6 Application Overwhelmed by Rapid User Interaction
- From: Dean Earley
- Re: VB6 Application Overwhelmed by Rapid User Interaction
- References:
- VB6 Application Overwhelmed by Rapid User Interaction
- From: Joseph Geretz
- VB6 Application Overwhelmed by Rapid User Interaction
- Prev by Date: Re: Read a unique ID from the registry?
- Next by Date: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Previous by thread: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Next by thread: Re: VB6 Application Overwhelmed by Rapid User Interaction
- Index(es):
Relevant Pages
|
Loading