Cursor.Current Proprietà
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta l'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
Oggetto Cursor che rappresenta il cursore del mouse. Il valore predefinito è null
, se il cursore del mouse non è visibile.
L'impostazione della proprietà modifica il Current cursore attualmente visualizzato. L'applicazione potrebbe o non continuare ad ascoltare gli eventi del mouse. Per segnalare che l'applicazione non deve rispondere agli eventi del mouse durante un'operazione a esecuzione prolungata, usare 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 di un'attività in background, vedere BackgroundWorker.
Prodotto | Versioni |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: