Condividi tramite


Cursor.Current Proprietà

Definizione

Ottiene o imposta un oggetto cursore che rappresenta il cursore del mouse.

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

Valore della proprietà

Oggetto Cursor che rappresenta il cursore del mouse. Il valore predefinito è null se il cursore del mouse non è visibile.

Commenti

L'impostazione della Current proprietà modifica il cursore attualmente visualizzato. L'applicazione potrebbe continuare o meno ad ascoltare gli eventi del mouse. Per segnalare che l'applicazione non deve rispondere agli eventi del mouse durante un'operazione a esecuzione prolungata, utilizzare la UseWaitCursor proprietà . Nella maggior parte dei casi, tuttavia, è preferibile usare un thread in background per gestire un'operazione a esecuzione prolungata e lasciare l'interfaccia utente accessibile all'utente. Per altre informazioni sull'implementazione semplice di un'attività in background, vedere BackgroundWorker.

Si applica a

Vedi anche