|
-
Sep 12th, 2008, 10:07 AM
#1
Thread Starter
Fanatic Member
[02/03] Flashing label/Mouse pointer?
Hi people,
I was hoping someone could help me out please.
When my vb application tried to load data from the database it can take a few second depending on the amount of users using it at the same time, I was hoping someone could help me out please. When the data is being loaded I want some sort of flashing label to say 'Data loading.... Please wait' and the timer to replace the mouse pointer. Is this possible? If the label is a bad idea could you suggest what else I could try?
Thanks
-
Sep 12th, 2008, 10:14 AM
#2
Re: [02/03] Flashing label/Mouse pointer?
You should set the Cursor property of your form and controls to WaitCursor while the data is loading and then back to Default when it's done. That's the Windows standard for user feedback to indicate they should wait while an operation completes. You may have to call Refresh on your form to ensure that the new mouse pointer gets displayed before the UI thread is too busy performing the task to change it.
-
Sep 12th, 2008, 10:36 AM
#3
Addicted Member
Re: [02/03] Flashing label/Mouse pointer?
 Originally Posted by jmcilhinney
You should set the Cursor property of your form and controls to WaitCursor while the data is loading and then back to Default when it's done. That's the Windows standard for user feedback to indicate they should wait while an operation completes. You may have to call Refresh on your form to ensure that the new mouse pointer gets displayed before the UI thread is too busy performing the task to change it.
How about
Code:
windows.Forms.Application.DoEvents()
Would that work as well as refresh?
/Vb.net2005 is what I'm usin.
-
Sep 12th, 2008, 07:57 PM
#4
Re: [02/03] Flashing label/Mouse pointer?
 Originally Posted by MaslowB
How about
Code:
windows.Forms.Application.DoEvents()
Would that work as well as refresh?
/Vb.net2005 is what I'm usin.
Quite probably.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|