PRB: Closing Top-Level Form with Docked Toolbar Leaves Image (197276)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q197276 SYMPTOMS
A phantom image of a form is left on the screen after you have closed it.
You cannot close or move this image of the form, and it stays on the
Windows taskbar. After you click on the taskbar button on the Windows
taskbar, the image of the form might disappear but the taskbar button does
not close.
CAUSE
This can be occur when you use a docked toolbar that has code in one of the
toolbar buttons to close a top-level form. Top-level forms are also known
as SDI forms.
RESOLUTION
Undock the toolbar before using a button on the toolbar to close the form.
You can undock the toolbar by copying the following code into the Click
event of the Exit button on the toolbar:
IF This.Parent.Docked
This.Parent.Dock(-1)
ENDIF
Modification Type: | Major | Last Reviewed: | 8/11/1999 |
---|
Keywords: | kbOOP kbprb KB197276 |
---|
|