Click here to Skip to main content
15,868,340 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hii,

Please tell me by which way we can freez the creen while loading data so that user will not interuppt and unexpected error can be stop.

i know there can be many ways but also tell which will be good one as i may have to use it on many pages.

Thanks in advance :)
Posted
Comments
Sergey Alexandrovich Kryukov 28-Feb-13 1:36am    
Why freezing it? Not a good idea.
—SA
sanchu90 28-Feb-13 1:40am    
Freezing so that no one can access controls while loading data..
Sergey Alexandrovich Kryukov 28-Feb-13 1:48am    
I understand it, but it should not be "freezing". OK, you can call it "freezing", but this is simply... well, please see my answer.
—SA
sanchu90 28-Feb-13 2:09am    
May be Freezing Word is not right here
but i want something like image to be display saying "Please Wait while Data is loading" and background may be in diff color
and when loading completed the data can be access by users.


Sergey Alexandrovich Kryukov 28-Feb-13 2:43am    
Didn't I answered on how to do it? After all, please see my solution and comment there. Well, add different color if you want to, and whatever you want...
—SA

Please see my comment to the question. Don't freeze it, why? In fact, there is no such UI concept.

Better simply make its control temporarily disabled, and only those which are invalid to use during your loading. Do the loading in a separate thread. This way, the UI will remain responsive (the user can, say, resize the window), but will clearly show the user that it's not ready. Also, show a hourglass mouse cursor.

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 28-Feb-13 8:16am    
Good points :-D
Sergey Alexandrovich Kryukov 28-Feb-13 11:28am    
Thank you, Espen.
—SA
Well thanks everyone..
I have solved it using updateProgress :)
 
Share this answer
 
Run a pop up in background thread.Which indicate data loading message. And Kill background thread after completing data loading.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900