wait cursor in c# code example
Example 1: c# change cursor
// Set cursor as hourglass
Cursor.Current = Cursors.WaitCursor;
// Execute your time-intensive hashing code here...
// Set cursor as default arrow
Cursor.Current = Cursors.Default;
Example 2: asp net c# browser cursor wait
<head runat="server">
<script>
function setHourglass()
{
document.body.style.cursor = 'wait';
}
</script>
</head>
<body onbeforeunload="setHourglass();" onunload="setHourglass();">
</body>