| ZennoLab.Emulation Assembly > ZennoLab.Emulation Namespace > Emulator Class : CloseWindow Method |
Type: System.String
The header of the window.
Type: System.String
The header of the window.
Type: System.String
The answer with information about the success of the current command's execution. If current command was successful then this answer is "ok"; otherwise message describing the error.
For using of this method not required the call ActivateWindow method.
// close the window string result = Emulator.CloseWindow("TestForm"); // check the result if (result == "ok" && !Emulator.ErrorDetected) return "Window was closed"; else return "Fail";
// close the window $result = ZennoLab\Emulation\Emulator::CloseWindow("TestForm"); // check the result if ($result == "ok" && !ZennoLab\Emulation\Emulator::ErrorDetected) return "Window was closed"; else return "Fail";