Hourglass
-
Somthing like this maybe?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' save the old cursor Cursor oldCursor = Me.Cursor; ' change the cursor to the one you want Me.Cursor = Cursors.WaitCursor ' do your work here ' restore the old cursor or else you may never get it back Me.Cursor = oldCursor End Sub
-
Hi, There is actually no need to save the cursor to memory.
Me.Cursor = CType(Cursors.WaitCursor, Cursor) 'Your process starts here 'Your process happens here 'Your process finishes here Me.Cursor = CType(Cursors.Default, Cursor)
Have fun, JohanMy advice is free, and you may get what you paid for.
-
All you have to do is set the Cursor property.
Me.Cursor = Cursors.WaitCursor ' You _might_ have to do this, depending on your code... Application.DoEvents() ' ' Long running code goes here... ' Me.Cursor = Cursors.Default
Dave Kreskowiak Microsoft MVP - Visual Basic
-
All you have to do is set the Cursor property.
Me.Cursor = Cursors.WaitCursor ' You _might_ have to do this, depending on your code... Application.DoEvents() ' ' Long running code goes here... ' Me.Cursor = Cursors.Default
Dave Kreskowiak Microsoft MVP - Visual Basic