Cursor.Current 屬性

定義

取得或設定表示滑鼠游標的游標物件。

public:
 static property System::Windows::Forms::Cursor ^ Current { System::Windows::Forms::Cursor ^ get(); void set(System::Windows::Forms::Cursor ^ value); };
public static System.Windows.Forms.Cursor Current { get; set; }
public static System.Windows.Forms.Cursor? Current { get; set; }
static member Current : System.Windows.Forms.Cursor with get, set
Public Shared Property Current As Cursor

屬性值

Cursor,代表滑鼠游標。 如果滑鼠游標不可見,則預設值為 null

備註

設定 屬性會 Current 變更目前顯示的資料指標。 應用程式可能無法繼續接聽滑鼠事件。 若要指示應用程式在長時間執行的作業期間不應該回應滑鼠事件,請使用 UseWaitCursor 屬性。 不過,在大部分情況下,最好是使用背景執行緒來管理長時間執行的作業,並讓使用者能夠存取使用者介面。 如需輕鬆實作背景工作的詳細資訊,請參閱 BackgroundWorker

適用於

另請參閱