Export (0) Print
Expand All

ErrorProvider.CanExtend Method

Gets a value indicating whether a control can be extended.

[Visual Basic]
Public Overridable Function CanExtend( _
   ByVal extendee As Object _
) As Boolean Implements IExtenderProvider.CanExtend
[C#]
public virtual bool CanExtend(
 object extendee
);
[C++]
public: virtual bool CanExtend(
 Object* extendee
);
[JScript]
public function CanExtend(
   extendee : Object
) : Boolean;

Parameters

extendee
The control to be extended.

Return Value

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.

Implements

IExtenderProvider.CanExtend

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ErrorProvider Class | ErrorProvider Members | System.Windows.Forms Namespace

Show:
© 2015 Microsoft