Search This Blog

Wednesday, August 1, 2012

Mouse Cursor C#

C# > Cursors

Cursors provides a collection of Cursor objects for use by a Windows Forms application.
 
Example: 1. Wait cursor
public Form1()
{
    InitializeComponent();             

    this.Cursor = Cursors.WaitCursor; // Wait cursor, an hourglass shape.
     // do something
    this.Cursor = Cursors.Default; //default cursor, usually an arrow cursor.
}