property Grid.hWnd as Long
Retrieves the control's window handle.

TypeDescription
Long A long value that indicates the handle of the control's window.
Use the hWnd property to get the handle of the control's window. Use the ItemWindowHost property to get the handle of the container window that host an ActiveX control. Use the Editing property to get the window's handle for the built-in editor that's visible and focused, while control is running in the edit mode. The Microsoft Windows operating environment identifies each form and control in an application by assigning it a handle, or hWnd. The hWnd property is used with Windows API calls. Many Windows operating environment functions require the hWnd of the active window as an argument.