C#.NET Technical Information

Product Information
Supported Versions
Sample Programs
Project Setup

Technical Notes

Supported Version

ExceleTel TeleTools v3.7 works with virtually all Windows development environments that support ActiveX technology.  This includes Visual C# .NET.

Sample Programs

Click here for a complete list available sample programs provided by ExceleTel.

Here is a list of sample programs available for Visual C# .NET.  Keep in mind that the Delphi and VB.Net samples are very similar and can be easily converted to C#:


Project Setup

The steps to create all sample projects within Visual C# .NET are as follows:

  1. Run Visual Sudio.NET

  2. On the Start tab click the "New Project" button

  3. In the "New Project" dialog box select the project type, for example "Visual C#  Project".
    In "Templates" select "Windows Application"
    Enter a Name and Location then click "OK".

  4. From the "Tools" menu, select “Customize Toolbox...”

  5. From the "COM Components" tab on the "Customize Toolbox..." dialog box select the TeleTools controls required for your application (i.e. etLine, etPhone, etPlay, etRecord).
    Be sure to select the correct library (ExceleTel TeleTools v3.7)

The TeleTools controls will be visible in the "Windows Forms" section of the Tool Box. Look for the following icons:





You are now ready to add the TeleTools controls to your form(s).

Be sure to review the information in the sections Creating Controls Design-Time, Creating Controls at Run-Time and Why Serial Numbers Are Important section. This will explain how to use the AboutLoadSerialNumber properties to set the AboutSerialNumber properties.

Before using a TeleTools control it must be enabled. This is done by setting the Enabled or EnableControl property to True.

To include all of the TeleTools Constants, see the technical note below

C# Technical Notes for TeleTools


There are a few things particular to C#.Net that you should be aware of:

  • C# .NET is CASE SENSITIVE!  - etline1 is not the same as etLine1
  • There is no global constant file, you must create a type and include a file with this type in your project

Including the TeleTools constants

download the etTTConst.cs file HERE

You may want to include the ExceleTel TeleTools constants file in your project to make it easy to reference any or all of the constants that are available to you such as error messages and call status flags.  We have created the etTTConst.cs file with the ttconst type.  Here is how do use it:

Right click on the Solution Explorer for your open project

Select "Add | Existing Item" and find the etTTConst.cs file (we recommend placing it in the \Program Files\ExceleTel\TeleTools\X.x\bin\C# folder)

When you type ttconst followed by a period, you will get the Microsoft C# Intellisense help and be able to see all of the constants available such as ttconst.wfPCM08000M16 for the 8kHZ, 16Bit, Mono wave format or the meaning of an error code such as ttconst.LINEERR_INVALCALLSTATE.  The structure of the etTTConst.cs file looks like this:

public class ttconst

    public const uint ET_LINE_ERROR_DEVICE = 0xFFFFFFFE;
    public const uint ET_PHONE_ERROR_DEVICE = 0xFFFFFFFE;
    {over 100 constants}