PowerTCP Emulation for .NET

from $699.00
Available Platforms

See all PowerTCP Emulation for .NET Code Examples


Key Mapping Example

The following example demonstrates mapping a sequence to a pressed key. With a few lines in the VT control's KeyDown event handler, any key can be made to send an alternative sequence.


private void vt1_KeyDown(object sender, VtKeyEventArgs e)
    //If there is a telnet connection
    if (telnet1.State != Dart.Emulation.ConnectionState.Closed)
        //Send substitute string when Control-H pressed
        if (e.Control && e.KeyCode == Keys.H)
            e.Handled = true//prevent other key events
            telnet1.Write("Hello World!");


To download a trial please visit the PowerTCP Emulation for .NET product page.