Article ID: 156243
Article Last Modified on 12/14/1999
THISFORM.Release()
DO TESTMENU.MPR WITH THIS, .T.
* Close button Click() code THISFORM.Visible = .F. THISFORM.Release()To handle when the form is closed by clicking the Close [X] button under Windows 95 or NT 4.0, or pressing Alt+F4 or clicking Close on the Control menu, place the following in the QueryUnload() method code for the form:
* Form.QueryUnload() code THIS.Visible = .F.To handle when the form is released by clicking Exit (or equivalent) from the menu on the SDI form, add this to a procedure for the Exit bar of your menu:
* Menu Exit bar code LOCAL oForm oForm = _screen.ActiveForm _screen.ActiveForm.Visible = .F. oForm.Release() SET SYSMENU TO DEFAULT && Resets VFP menu back to default
Keywords: kbui kbprb KB156243