Can I set the cursor to an hour glass to give some indication that the server is alive and busy?
Or any other form of indication?
Window1.MouseCursor = System.Cursors.Wait // ? - For desktop apps
nope no luck…
Self.Cursor = System.WebCursors.Wait
Running under chrome… I don’t see the cursor change.
I used Cursor.WebCursors.Automatic to change it back when the ‘wait’ was over…
If me.Caption = "Wait" Then
self.Cursor = System.WebCursors.Wait
me.Caption = "Standard"
Else
self.Cursor = System.WebCursors.StandardPointer
me.Caption = "Wait"
End If
I placed this code in the action event of a button on a web page. This toggles the webpage cursor between the two states. It doesn’t change the button cursor though.
If me.Caption = "Wait" Then
self.Cursor = System.WebCursors.Wait
me.Cursor = System.WebCursors.Wait
me.Caption = "Standard"
Else
self.Cursor = System.WebCursors.StandardPointer
me.Cursor = System.WebCursors.StandardPointer
me.Caption = "Wait"
End If
This does both.
If you have a container or dialog open you’ll probably want to change the cursor for them also.
I also use Chrome on Windows 7.
HTH
Wayne
you have to put self.Cursor = System.WebCursors.Wait in a WebThread