Show the wait cursor for the whole application as long as the object is not disposed.
| C# | Visual Basic | Visual C++ |
public sealed class SetCursor : IDisposable
Public NotInheritable Class SetCursor _ Implements IDisposable
public ref class SetCursor sealed : IDisposable
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| SetCursor()()() |
Initializes a new instance of the SetCursor class and makes the WaitCursor the active cursor.
| |
| SetCursor(Cursor) |
Initializes a new instance of the SetCursor class and makes the passed cursor the active cursor.
| |
| Dispose()()() |
Resets the active cursor to the cursor that was active when this instabce was initialized.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString()()() | (Inherited from Object.) |
The previously active cursor is saved and restored when the object is disposed.
using new SetCursor
{
// Your slow code goes here
}
| Object | |
| SetCursor | |