public class Cursor
{
[DllImport("coredll.dll")]
private static extern int LoadCursor(int zeroValue, int cursorID);
[DllImport("coredll.dll")]
private static extern int SetCursor(int cursorHandle);
public static void ShowWaitCursor(bool bShowCursor)
{
int cursorHandle = 0;
if (bShowCursor)
{
const int hourGlassCursorID = 32514;
cursorHandle = LoadCursor(0, hourGlassCursorID);
}