tags:

views:

585

answers:

1

What's the best method in WPF for showing an Eggtimer/Busy mouse icon when opening a new window or retrieving records from a DB?

+4  A: 

The simplest way is to set Mouse.OverrideCursor:

Mouse.OverrideCursor = Cursors.Wait;
try
{
    // perform task
}
finally
{
    Mouse.OverrideCursor = null;
}
Matt Hamilton
Thanks Matt, works perfectly.
Mitch