System.Windows.Forms.AccessibleObject.UseStdAccessibleObjects Method

Associates an object with an instance of an System.Windows.Forms.AccessibleObject based on the handle of the object.

Syntax

protected void UseStdAccessibleObjects (IntPtr handle)

Parameters

handle
An IntPtr that contains the handle of the object.

Remarks

Server applications can call this function when they contain a custom UI object that is similar to a system-provided object. Server applications call CreateStdAccessibleObject and override the Accessibility.IAccessible methods and properties as needed to match their custom object. This approach saves server developers the work of fully implementing all the Accessibility.IAccessible properties and methods. This function is similar to CreateStdAccessibleProxy, except that CreateStdAccessibleProxy enables you to specify the class name as a parameter, whereas CreateStdAccessibleObject uses the class name associated with the hwnd.

Calling this version of the UseStdAccessible is the same as calling the two parameter version with an objid of CLIENT.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0