By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,245 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,245 IT Pros & Developers. It's quick & easy.

cursor to hourglass

P: n/a
This should be very simple but I can't figure it out or find ANYTHING posted
about how to change your cursor to an hourglass. I have a ASP.NET web form
using VB.NET code behind. When I click on a button I want the cursor to
change to an hourglass and then change back to the normal cursor afterwards.
Any help would be greatly appreciated.

Thanks.
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Andy G wrote:
This should be very simple but I can't figure it out or find ANYTHING
posted about how to change your cursor to an hourglass. I have a
ASP.NET web form using VB.NET code behind. When I click on a button
I want the cursor to change to an hourglass and then change back to
the normal cursor afterwards. Any help would be greatly appreciated.

Thanks.


"cursor" is a client-side issue. You can set that via css/style settings.
http://msdn.microsoft.com/workshop/a...ies/cursor.asp

But: a button-click usually means a post to the server. You might have
problems with either keeping it an hourglass or setting it back.

Hans Kesting
Nov 18 '05 #2

P: n/a
In the client-side onclick event set css rule cursor:wait. Set it to auto
whwn you are done.

Eliyahu

"Andy G" <aj*****@iastate.edu> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
This should be very simple but I can't figure it out or find ANYTHING posted about how to change your cursor to an hourglass. I have a ASP.NET web form using VB.NET code behind. When I click on a button I want the cursor to
change to an hourglass and then change back to the normal cursor afterwards. Any help would be greatly appreciated.

Thanks.

Nov 18 '05 #3

P: n/a
As others have mentioned you can achieve desired effect with the use of css.
Though, it looks like you're thinking Windows application when you asked
this question. Why would you want to change cursor to hourglass when button
is clicked and form is submitted? Are you trying to tell your users to wait?
Lets think Web; User clicks a button form is submitted, user has to wait for
browser to reload the page. Is not it kind of obvious that user has to wait?
Besides spinning globe thingy in IE kind of indicates that.
Stop thinking Windows and start thinking Web.
"Andy G" wrote:
This should be very simple but I can't figure it out or find ANYTHING posted
about how to change your cursor to an hourglass. I have a ASP.NET web form
using VB.NET code behind. When I click on a button I want the cursor to
change to an hourglass and then change back to the normal cursor afterwards.
Any help would be greatly appreciated.

Thanks.

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.