I got the problem solved by adding folowing statement before _SCREEN.ACTIVEFORM.RELEASE
THIS.TOOLBAR_EXIST.HIDE
>Hi Dorin
>
>Thanks for the reply but the form is still hang on the screen even THIS.TOOLBAR_EXIST.RELEASE in unload event of the form. (Destory has also tried)
>
>Is that something related _SCREEN=OFF ?
>Any idea ?
>
>Thanks
>Arnold
>
>
>
>>You should :
>>
>>THIS.TOOLBAR_EXIST = .NULL.
>>
>>or
>>THIS.TOOLBAR_EXIST.RELEASE
>>
>>in Destroy , Unload or QueryUnload event of form
>>
>>>Hi Everyody
>>>
>>>I have a toolbar docked to SDI form (2-AS Top-level Form) preferctly like this...
>>>IF ISNULL(THIS.TOOLBAR_EXIST)
>>> THIS.TOOLBAR_EXIST=CREATEOBJ("MyToolbar")
>>> THIS.TOOLBAR_EXIST.DOCK(0)
>>> THIS.TOOLBAR_EXITS.SHOW
>>>ENDIF
>>>
>>>But when i run the code from the Exit button of toolbar ...
>>>
>>>_SCREEN.ACTIVEFORM.RELEASE
>>>
>>>The form still hang on the screen.Is someting I am missing ?
>>>
>>>Thanks for any comment in advance
>>>
>>>Arnold