473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Processing or wait control

Hi,

Is there a processing or wait control in .NET that i can display to the user
when large amounts of data are loaded from the database. Since i cant use the
progress bar since i dont know how much data is loaded from the database.

Thank you,
Vish
Mar 14 '06 #1
3 2428
Vish wrote:
Hi,

Is there a processing or wait control in .NET that i can display to the user
when large amounts of data are loaded from the database. Since i cant use the
progress bar since i dont know how much data is loaded from the database.

Thank you,
Vish

You can use a poor-man's progress bar that cycles, when it gets to the
end start over. At least this way the user knows the system is still
going. The other option would be to make a call to the DB to get the
number of records, then use a datareader to load the data from the
database. This way you can incriment the progress bar in your
datareader loop and it will be acturate.

The other issue you are going to have is the responsiveness of the UI
during a CPU intensive action. The way to fix this is to load the data
in a worker thread.

Hope it helps
Chris
Mar 14 '06 #2
Hello vish,

You can't know how much data is in DB without pre-request, that is not good.
The best approach is do not use bars for this, just smth special to note
that work in process (just box with time cursor, or any other solution)

v> Is there a processing or wait control in .NET that i can display to
v> the user when large amounts of data are loaded from the database.
v> Since i cant use the progress bar since i dont know how much data is
v> loaded from the database.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 14 '06 #3
Hi,

Thanks everybody for the suggestions. I have seen UI where a dotted circle
keeps spinning like in MS SQL Server 2005. I think those will serve my
purpose. Are any of those controls packaged with .NET 2.0 so that i can use
them.

Thank You,
Vish
"Michael Nemtsev" wrote:
Hello vish,

You can't know how much data is in DB without pre-request, that is not good.
The best approach is do not use bars for this, just smth special to note
that work in process (just box with time cursor, or any other solution)

v> Is there a processing or wait control in .NET that i can display to
v> the user when large amounts of data are loaded from the database.
v> Since i cant use the progress bar since i dont know how much data is
v> loaded from the database.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Mar 14 '06 #4

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

Similar topics

6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
10
by: shankwheat | last post by:
I'm experimenting with using a AJAX style "processing" icon. The process I'm running in the background with xmlHttp is intensive and takes a 5--10 secs to complete. Instead of my processing icon...
6
by: roundcrisis | last post by:
hi there: this is the situation: I have a function in a class the processing of this takes some time, this function can either be called from a winform or a command line with several...
3
by: usha535140 | last post by:
Hi, Can we use Ajax RoundedCornersExtender control with AJax,tabContainer?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.