![]() |
![]() |
Window.Close
Sub Close()
Member of Window
The Close method closes a window.
Before you close an active file, CorelDRAW prompts you to save the file.
The following code example closes the first window in the collection if there is more than one window in the Windows collection:
Sub Test() Dim Wnd As Window If ActiveDocument.Windows.Count > 1 Then Set Wnd = ActiveDocument.Windows(1) Wnd.Close End If End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.