.NET/Link API Version 1.7 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.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ScrollableControl
               System.Windows.Forms.ContainerControl
                  System.Windows.Forms.Form
                     Wolfram.NETLink.UI.ConsoleWindow

[Visual Basic]
Public Class ConsoleWindow
    Inherits Form
[C#]
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.

Remarks

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;
    ConsoleWindow.Instance.Show();
    ConsoleWindow.Instance.Activate();

Requirements

Namespace: Wolfram.NETLink.UI

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

See Also

ConsoleWindow Members | Wolfram.NETLink.UI Namespace