Forum  Commercial Foru...  Commercial Foru...  WaitCursor while application busy
Previous Previous
 
Next Next
New Post 1/12/2011 10:48 AM
  asowles
85 posts
www.lathem.com
No Ranking


WaitCursor while application busy 

I am using the following code in my application:

Cursor = Cursors.WaitCursor

but it doesn't seem to have any effect.  Is there a way to have the wait cursor displayed so that users know that something is occurring?

Thanks,

Allen

 

 
New Post 1/12/2011 12:11 PM
  palli
14416 posts
1st Level Poster




Re: WaitCursor while application busy 

Hi Allen,

Although I know next to nothing of your application, your description sounds like you may be running some relatively length processing and you want the user to know your application is working by setting the cursor differently.

If this is true, then you must realize that Visual WebGui is a web application, building on the Request/Response model where the client is always the initiator. When a request is sent from the client, the server processes the request and only when the processing is finished, a response is sent back to the client.

This means for your long running scenario that, say by the click of a button, you start processing something server-side and change the cursor and then continue processing. In this case, the changed cursor never reaches the client until your server-side has finished processing the request, and by that time you probably have set the cursor back to normal anyway.

To work around this web limitation, the easiest way is to add a Timer control to your form and have it fire frequently enough, but not too frequently to degrade performance (you'll have to find some frequency that fits your scenario). You need to register a Tick event handler, but you can have the event handler an empty code block if you want to, as it's only purpose is to make sure the client will raise the request. During this request, the server will send back all changes to the UI that have occured server-side, including your cursor change and then your client will show different cursor.

Hope this explains and helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 1/12/2011 4:29 PM
  asowles
85 posts
www.lathem.com
No Ranking


Re: WaitCursor while application busy 

 Thanks for your reply.  I will give that a try!

 
New Post 1/13/2011 12:17 PM
  palli
14416 posts
1st Level Poster




Re: WaitCursor while application busy 

Hi,

You are welcome and good luck,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  WaitCursor while application busy
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS