ErrorProvider.CanExtend Method (Object)


Gets a value indicating whether a control can be extended.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool CanExtend(
	object extendee


Type: System.Object

The control to be extended.

Return Value

Type: System.Boolean

true if the control can be extended; otherwise, false.

This property will be true if the object is a Control and is not a Form or ToolBar.

Typically, you will use CanExtend to determine whether you can attach an ErrorProvider to the specified control.

.NET Framework
Available since 1.1
Return to top