1
如何以編程方式顯示Windows Mobile 6上的等待圖標?如何以編程方式顯示Windows Mobile 6上的等待圖標?
它應該是很容易做到,但我不能google一下,因爲有這麼多的等待圖標替換了有... :-)
感謝,
阿德里安
如何以編程方式顯示Windows Mobile 6上的等待圖標?如何以編程方式顯示Windows Mobile 6上的等待圖標?
它應該是很容易做到,但我不能google一下,因爲有這麼多的等待圖標替換了有... :-)
感謝,
阿德里安
像這樣的事情是有點用的:
class WaitCursor : IDisposable
{
public WaitCursor()
{
Cursor.Current = Cursors.WaitCursor;
}
public void Dispose()
{
Cursor.Current = Cursors.Default;
}
}
它使您可以使用「使用」塊返回到默認光標,即使你有一個異常或返回:
public Foo()
{
using (var c = new WaitCursor())
{
// do long-running stuff
// when we exit the using block, the cursor will return to the default state
}
}
你的意思是等待光標?
using System.Windows.Forms;
Cursor.Current = Cursors.WaitCursor;