Share via


LineDisplayBase.DestroyWindow Method

2/27/2008

Destroys the current window.

Namespace: Microsoft.PointOfService.BaseServiceObjects
Assembly: Microsoft.PointOfService.ControlBase (in microsoft.pointofservice.controlbase.dll)

Syntax

'Declaration
Public Overrides Sub DestroyWindow
public override void DestroyWindow ()
public:
virtual void DestroyWindow () override
public void DestroyWindow ()
public override function DestroyWindow ()

Remarks

The characters displayed in its viewport are not changed.

DestroyWindow sets the CurrentWindow property to window 0, the device window. The device window and the associated window properties are updated.

DestroyWindow may throw a PosControlException with the following ErrorCodes:

Value

Meaning

Illegal

The current window is set to 0, the device window. This window cannot be destroyed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

LineDisplayBase Class
LineDisplayBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
LineDisplay.CreateWindow Method
LineDisplay.CurrentWindow Property