This documentation is archived and is not being maintained.

Cursors.Help Property

Gets the Help cursor, which is a combination of an arrow and a question mark.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public static Cursor Help { get; }
/** @property */
public static Cursor get_Help ()

public static function get Help () : Cursor

Property Value

The Cursor that represents the Help cursor.

The following example demonstrates the Cursors class. To run this example place paste the following code in a form and call the InitializeRadioButtonsAndGroupBox method from the form's constructor or Load method. Ensure all events are connected to their event-handling methods.

internal System.Windows.Forms.GroupBox GroupBox1;
internal System.Windows.Forms.RadioButton RadioButton1;
internal System.Windows.Forms.RadioButton RadioButton2;
internal System.Windows.Forms.RadioButton RadioButton3;

private void InitializeRadioButtonsAndGroupBox()
{

    // Construct the GroupBox object.
    this.GroupBox1 = new GroupBox();

    // Construct the radio buttons.
    this.RadioButton1 = new System.Windows.Forms.RadioButton();
    this.RadioButton2 = new System.Windows.Forms.RadioButton();
    this.RadioButton3 = new System.Windows.Forms.RadioButton();

    // Set the location, tab and text for each radio button
    // to a cursor from the Cursors enumeration.
    this.RadioButton1.Location = new System.Drawing.Point(24, 24);
    this.RadioButton1.TabIndex = 0;
    this.RadioButton1.Text = "Help";
    this.RadioButton1.Tag = Cursors.Help;
    this.RadioButton1.TextAlign = ContentAlignment.MiddleCenter;

    this.RadioButton2.Location = new System.Drawing.Point(24, 56);
    this.RadioButton2.TabIndex = 1;
    this.RadioButton2.Text = "Up Arrow";
    this.RadioButton2.Tag = Cursors.UpArrow;
    this.RadioButton2.TextAlign = ContentAlignment.MiddleCenter;

    this.RadioButton3.Location = new System.Drawing.Point(24, 80);
    this.RadioButton3.TabIndex = 3;
    this.RadioButton3.Text = "Cross";
    this.RadioButton3.Tag = Cursors.Cross;
    this.RadioButton3.TextAlign = ContentAlignment.MiddleCenter;
    
    
    // Add the radio buttons to the GroupBox.  
    this.GroupBox1.Controls.Add(this.RadioButton1);
    this.GroupBox1.Controls.Add(this.RadioButton2);
    this.GroupBox1.Controls.Add(this.RadioButton3);

    // Set the location of the GroupBox. 
    this.GroupBox1.Location = new System.Drawing.Point(56, 64);
    this.GroupBox1.Size = new System.Drawing.Size(200, 150);

    // Set the text that will appear on the GroupBox.
    this.GroupBox1.Text = "Choose a Cursor Style";
    //
    // Add the GroupBox to the form.
    this.Controls.Add(this.GroupBox1);
    //

}

System.Windows.Forms.GroupBox groupBox1;
System.Windows.Forms.RadioButton radioButton1;
System.Windows.Forms.RadioButton radioButton2;
System.Windows.Forms.RadioButton radioButton3;

private void InitializeRadioButtonsAndGroupBox()
{
    // Construct the GroupBox object.
    this.groupBox1 = new GroupBox();

    // Construct the radio buttons.
    this.radioButton1 = new System.Windows.Forms.RadioButton();
    this.radioButton2 = new System.Windows.Forms.RadioButton();
    this.radioButton3 = new System.Windows.Forms.RadioButton();

    // Set the location, tab and text for each radio button
    // to a cursor from the Cursors enumeration.
    this.radioButton1.set_Location(new System.Drawing.Point(24, 24));
    this.radioButton1.set_TabIndex(0);
    this.radioButton1.set_Text("Help");
    this.radioButton1.set_Tag(Cursors.get_Help());
    this.radioButton1.set_TextAlign(ContentAlignment.MiddleCenter);

    this.radioButton2.set_Location(new System.Drawing.Point(24, 56));
    this.radioButton2.set_TabIndex(1);
    this.radioButton2.set_Text("Up Arrow");
    this.radioButton2.set_Tag(Cursors.get_UpArrow());
    this.radioButton2.set_TextAlign(ContentAlignment.MiddleCenter);

    this.radioButton3.set_Location(new System.Drawing.Point(24, 80));
    this.radioButton3.set_TabIndex(3);
    this.radioButton3.set_Text("Cross");
    this.radioButton3.set_Tag(Cursors.get_Cross());
    this.radioButton3.set_TextAlign(ContentAlignment.MiddleCenter);

    // Add the radio buttons to the GroupBox.  
    this.groupBox1.get_Controls().Add(this.radioButton1);
    this.groupBox1.get_Controls().Add(this.radioButton2);
    this.groupBox1.get_Controls().Add(this.radioButton3);

    // Set the location of the GroupBox. 
    this.groupBox1.set_Location(new System.Drawing.Point(56, 64));
    this.groupBox1.set_Size(new System.Drawing.Size(200, 150));

    // Set the text that will appear on the GroupBox.
    this.groupBox1.set_Text("Choose a Cursor Style");
    //
    // Add the GroupBox to the form.
    this.get_Controls().Add(this.groupBox1);
    //
} //InitializeRadioButtonsAndGroupBox    

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Show: