.NET/Link API Version 1.5 USE FRAMES

ConsoleWindow Class

A Form that displays text written to the standard streams Console.Out and/or Console.Error.

For a list of all members of this type, see ConsoleWindow Members.


[Visual Basic]
Public Class ConsoleWindow
    Inherits Form
public class ConsoleWindow : Form

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.


This simple class is used by the Mathematica function ShowNETConsole, but you can also use it in .NET programs. It is particularly useful in Windows applications (as opposed to console applications), which typically do not have the Console.Out and Console.Error streams defined.

This class is a singleton, and you interact with it mainly through static methods and properties. To acquire a reference to the singleton instance, use the Instance property. Here is a typical C# code fragment demonstrating how to use this class:

    ConsoleWindow.StreamsToCapture = ConsoleWindow.StreamType.Out;


Namespace: Wolfram.NETLink.UI

Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll)

See Also

ConsoleWindow Members | Wolfram.NETLink.UI Namespace