Processing or wait control

G

Guest

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
 
C

Chris

Vish said:
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
 
M

Michael Nemtsev

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
 
G

Guest

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
 

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