다음을 통해 공유


Setting Up the Managed Exchange TreeView Control

Topic Last Modified: 2009-07-24

The Managed Exchange TreeView Control (ExchangeTreeViewControl.dll) is installed by default in the \Program Files\Exchange SDK\Libraries\ManagedTreeViewControl directory. Before you can implement the Managed Exchange TreeView Control in a Windows Forms application, you must first add a reference to it in a Microsoft Visual Studio .NET project and then add it to the toolbox in the project.

Note

To use the Managed Exchange TreeView Control class, you must have the Exchange Server 2007 SDK installed.

To add a reference to the Managed Exchange TreeView Control

  1. Open a new or existing Microsoft Visual C# or Microsoft Visual Basic .NET Windows Forms application in Visual Studio .NET.

  2. In the Solution Explorer pane, right-click References and click Add Reference.

  3. With the .NET tab highlighted, click Browse.

  4. Navigate to the \Program Files\Exchange SDK\Libraries\ManagedTreeViewControl\ directory, select the ExchangeTreeViewControl.dll icon, and click Open.

  5. Click OK to close the Add Reference window.

To add the Managed Exchange TreeView Control to the Toolbox

  1. In the Tools menu of the Visual Studio .NET Integrated Development Environment (IDE), click Customize Toolbox.

  2. In the Customize Toolbox window, click the .NET Framework Components tab and click Browse.

  3. Navigate to the \Program Files\Exchange SDK\Libraries\ExchangeTreeViewControl\ directory, select the ExchangeTreeViewControl.dll file icon, and click Open.

    ExchangeTreeViewControl will now be included in the list of .NET Framework components and checked off.

  4. Click OK to close the Customize Toolbox window.

  5. ExchangeTreeViewControl will now be listed at the bottom of the Windows Forms list of the Toolbox.

To add the ExchangeTreeViewControl to the Windows Form

  • In design mode, drag the ExchangeTreeViewControl from the Toolbox and drop it onto the Windows form.