Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a Windows handle for the form.
Syntax
public int hWnd()
Run On
Client
Return Value
Type: int
An integer value that is the form handle.
Remarks
The handle can be used with the WinAPI class.
Examples
The following example shows a call to the hWnd method that returns a handle for the form.
void runForm(Form form)
{
Args args;
FormRun formRun;
int handle;
args = new Args();
args.object(form);
// Create the run-time form.
formRun = classfactory.formRunClass(args);
formRun.run();
formRun.detach();
handle = formRun.hWnd();
}