Search code examples
vb.netwinformswrapperobjectlistview

Unable to use ObjectListView


I just downloaded ObjectListView. After adding the dll file when the objectListView is placed on my vb.net form it shows an error

Type 'BrightIdeasSoftware.ObjectListView' is not defined.

How to solve this problem ? I am using VS2010

enter image description here


Solution

  • It sounds like you are missing a reference.

    If you added the project source code, then you need to right-click on the project and select Add Reference..., select the Projects tab, and choose the ObjectListView project.

    If you are just using the DLL, then you need to right-click on the project and select Add Reference..., select the Browse tab, and select the DLL file.

    Update

    Based on the screenshot, the issue is that ObjectListView requires the full .Net Framework, not the client profile.

    To resolve this, right-click on the project, select Properties, then select .Net Framework 4 in the Target framework dropdown list (it will currently be set to .Net Framework 4 Client Profile).