473,473 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Delayed UI Code

I am using Studio 2008 with .Net 3.5. and my Brain is Fried :)

My user will use typical 'next' and 'previous' buttons to navigate records
in my app.

They will sometimes be in the habit of hittting the next button repeatedly
not giving the screen time to finish refreshing it's current record before
moving to the next.

I would like my program to work like this....
-------------------------------------------------------------
Sub JumpNextRecord()
Call ChangeRecordPointer
Call UpdateWinformElement1FromDB
Call UpdateWinformElement2FromDB
Call CallDelayed(AddressOf UpdateWinformElement3FromDB, 250)
End Sub
-------------------------------------------------------------

'UpdateWinformElement1FromDB' and 'UpdateWinformElement2FromDB' are simple
methods but 'UpdateWinformElement3FromDB' is complex and time consuming and
therefore I would like to only call it once the user has remained on the
current record for 250 ms or more.

This would allow me to hit a NextRecord button 5 times really quickly and
for the system to only call 'UpdateWinformElement3FromDB' 1 time once I stop
doing that.

Does anyone know how to do this?

--
Rory
Jan 23 '08 #1
2 1296
Hi Rory,

see http://weblogs.asp.net/rweigelt/arch...8/5512423.aspx for a
solution.

Kind regards,
Henning Krause

<ro********@newsgroup.nospamwrote in message
news:20*************************@news.microsoft.co m...
>I am using Studio 2008 with .Net 3.5. and my Brain is Fried :)

My user will use typical 'next' and 'previous' buttons to navigate records
in my app.

They will sometimes be in the habit of hittting the next button repeatedly
not giving the screen time to finish refreshing it's current record before
moving to the next.

I would like my program to work like this....
-------------------------------------------------------------
Sub JumpNextRecord()
Call ChangeRecordPointer
Call UpdateWinformElement1FromDB
Call UpdateWinformElement2FromDB
Call CallDelayed(AddressOf UpdateWinformElement3FromDB, 250)
End Sub -------------------------------------------------------------

'UpdateWinformElement1FromDB' and 'UpdateWinformElement2FromDB' are simple
methods but 'UpdateWinformElement3FromDB' is complex and time consuming
and therefore I would like to only call it once the user has remained on
the current record for 250 ms or more.

This would allow me to hit a NextRecord button 5 times really quickly and
for the system to only call 'UpdateWinformElement3FromDB' 1 time once I
stop doing that.

Does anyone know how to do this?

--
Rory

Jan 23 '08 #2
Hello Henning Krause [MVP - Exchange],
see http://weblogs.asp.net/rweigelt/arch...8/5512423.aspx
for a solution.
Thanks Henning

That's exactly what I was looking for.

I have had to do a little translation to VB.Net, but it's good to have to
do that sort of thing occasionally.

Either way it works perfectly

Thanks again.
Jan 24 '08 #3

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

Similar topics

7
by: Leo Breebaart | last post by:
Hi all, I have a question about Python and delayed evaluation. Short-circuiting of Boolean expressions implies that in: >>> if a() and b(): any possible side-effects the call to b() might...
13
by: Brian | last post by:
Hi all... This question is more for the GURUs out there. It is not a question on how to do something, but why it happens, and I am trying to figure out if there is a pattern. I am using IE, but...
0
by: subi | last post by:
Hi, I don't know where's the best place to post my question. I hope it suits this group. I have created an assembly with a delay sign attribute set to true in the AssemblyInfo.cs. And the key...
3
by: Nospam | last post by:
I'm trouble shooting my obfuscated program. I'd like suggestions on some tools to help. I'm using vs2005 with delayed signing option from the project settings and reading the hash from a key.snk...
5
by: Jim in Arizona | last post by:
I realize that by design, web client/server interaction is disconnected. I'm wondering if there is a way that when a client/server interaction occurs, if there is a way to start a time on the web...
2
by: Amey Agnihotri | last post by:
Hi! I'm trying to run a few AT commands on a GSM modem. I'm doing this in C#.Net 2005. When I run a few commands one after the other, the response generation takes a long time. The response for...
10
by: Amey Agnihotri | last post by:
Hi! I'm trying to run a few AT commands on a GSM modem. I'm doing this in C#.Net 2005. When I run a few commands one after the other, the response generation takes a long time. The response for...
8
by: Grorange | last post by:
Writing ASP.NET pages, I have a need for client-side functions to prevent going to the server for every small change. I have a list of server side created checkboxes filled with a lot of...
0
by: Giampaolo Rodola' | last post by:
Hi, I post this message here in the hope someone using asyncore could review this. Since the thing I miss mostly in asyncore is a system for calling a function after a certain amount of time, I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.