Prepare your project
This guide explains how to prepare your project to use the Flexible TreeView component.
You can integrate Flexible TreeView into your project in two ways:
- Through the Visual Studio Windows Forms designer for design-time configuration
- Programmatically by referencing the Flexible TreeView assembly and configuring it through code
Flexible TreeView assemblies#
For details about Flexible TreeView run-time and design-time assemblies, see the Deployment section.
For .NET Framework applications#
Design-time configuration#
To use the Flexible TreeView component in design-time, add it to the Visual Studio Toolbox as described here and drop it to your form.
Code-only configuration#
To use Flexible TreeView programmatically:
- Reference the
\Bin\net4.6\ARMSoft.FlexibleTreeView.dll
assembly in your project
Note
For projects targeting .NET Framework 4.6 - 4.8.1, use the Flexible TreeView assembly that targets .NET Framework 4.6.
-
Add the
Properties\license.licx
file to your project with this content:ARMSoft.FlexibleTreeView.FlexibleTreeView, ARMSoft.FlexibleTreeView, Version=6.0.0.0, Culture=neutral, PublicKeyToken=a0f39221011ef811
Replace
6.0.0.0
with your Flexible TreeView version number.
Tip
Visual Studio automatically generates the license.licx
file when you add Flexible TreeView through the Toolbox.
For .NET applications#
To add Flexible TreeView to your .NET Core application, install the Flexible TreeView NuGet package in your project.
Tip
The Properties\license.licx
file does not need to be added or managed in the .NET Core project. It is sufficient to install the Flexible TreeView NuGet package to your project.
After installing the NuGet package, Flexible TreeView becomes available in both the Visual Studio Toolbox and as a referenced assembly in your project. You can use it at design-time by dragging the component onto your form or in code-only mode.
Next Steps#
Once you've added the Flexible TreeView reference to your project, refer to the Core concepts guide to learn how to use it.