I'm new to C# and VS and I'm trying to import a project named ObjectListView into Visual Studio. I downloaded the whole package and the ObjectListView project from here: http://objectlistview.sourceforge.net/cs/download.html
Some sources say that I need to use Add Reference and choose the .dll
file. I added ObjectListView.dll
It's in the References Tab
Is this how I'm supposed to import an external package?
However, when I used the using clause, the ObjectListView is not a valid identifier.
Edit: How do I add the ObjectListView into the Toolbox?
Try:
using BrightIdeasSoftware;
When all else fails, I think you can look at an object browser or ... download the source and investigate. You should install via NuGet and references will be added for you.
You could also download the sample project to understand how to use the library.
Compiled sample:
using BrightIdeasSoftware;
namespace ClsLib1
{
public class Class1
{
private ObjectListView _listView;
public Class1()
{
_listView = new TreeListView();
}
}
}
To add the controls to the toolbox: