Shape.Select Method ()

 

Enables a control.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

public void Select()
public:
void Select()
member Select : unit -> unit
Public Sub Select

Remarks

The Select method enables the control if it is contained in another control and all its parent controls are both visible and enabled.

Examples

The following example selects the specified Shape, if it can be selected.

public void SelectShape(Microsoft.VisualBasic.PowerPacks.Shape shape)
{
    // Select the control, if it can be selected.
    if (shape.CanSelect)
    {
        shape.Select();
    }
}
Public Sub SelectShape(ByVal shape As Microsoft.VisualBasic.PowerPacks.Shape)
    ' Select the control, if it can be selected.
    If shape.CanSelect Then
        shape.Select()
    End If
End Sub

See Also

Shape Class
Microsoft.VisualBasic.PowerPacks Namespace
How to: Draw Lines with the LineShape Control (Visual Studio)
How to: Draw Shapes with the OvalShape and RectangleShape Controls (Visual Studio)
Introduction to the Line and Shape Controls (Visual Studio)

Return to top