ControlFromHwnd Function

Applies to:  PowerForm control
See also:  Method and Function Index

Returns a reference to a control placed in the same container as a PowerForm control.

Syntax:

Set ControlRef = object.ControlFromHwnd(hWnd As Long) As Object

The ControlFromHwnd function syntax has these parts:

Part Description
ControlRef The name of a variable to hold the reference returned by the function.
object The name of an object in the Applies to list.
hWnd Window handle of a control placed in the same container as a PowerForm control.

Remarks:

ControlFromHwnd cannot be used to find a control which was loaded at run-time.


Home

Copyright and Disclaimer