For a non-mdi form (a form with form.mdi = false), the hWndParent property can be used in conjunction with the showTaskBarButton property to determine, or specify, the hWnd property for the parent window of a form.

Property of

Form

Description

When a form’s showTaskBarButton property is set to false, calling the form's open( ) method will cause its hWndParent property to be set to the hWnd property of a hidden parent window.

Windows will not create a Taskbar button for a window if it has a parent window associated with it.

Alternatively, before opening a non-mdi form, you can set the hWndParent property to an open form's hWnd property. If you also set the showTaskBarButton property to false, the specified hWndParent will be assigned as the parent window for the non-mdi form when that form is opened (see example).

Switching between dBASE Plus, or a dBASE Application, and other Windows programs

When running a non-modal and non-mdi form, you must set the form's hWndParent property to the appropriate parent hWnd (ex. _app.frameWin.hWnd), during the form's open( ) method, to ensure the form will always stay on top when switching between dBASE Plus, or a dBASE Application, and other Windows programs.