无法使用ObjectListView
我刚刚下载了 ObjectListView。添加 dll 文件后,当 objectListView 放置在我的 vb.net 表单上时,它显示错误
未定义类型“BrightIdeasSoftware.ObjectListView”。
如何解决这个问题? 我正在使用 VS2010
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你缺少一个参考。
如果添加了项目源代码,则需要右键单击该项目并选择“添加引用...”,选择“项目”选项卡,然后选择“ObjectListView”项目。
如果您只是使用 DLL,则需要右键单击该项目并选择“添加引用...”,选择“浏览”选项卡,然后选择 DLL 文件。
更新
根据屏幕截图,问题在于 ObjectListView 需要完整的 .Net Framework,而不是客户端配置文件。
要解决此问题,请右键单击该项目,选择“属性”,然后在“目标框架”下拉列表中选择“.Net Framework 4”(它将当前设置为
.Net Framework 4 Client Profile
)。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 theTarget framework
dropdown list (it will currently be set to.Net Framework 4 Client Profile
).我刚刚下载了完整的演示包并验证了它是否可以运行。然后,我转到“.Net Framework 组件”下的“工具箱”,右键单击并选择“选择项目...”,然后浏览到其中包含 ObjectListView.dll 的文件夹并选择它。这会将该组件添加到工具箱上的容器组中。然后我将 ObjectListView 添加到我的表单中,它工作正常。检查并确保您的项目引用中包含 ObjectListView。
即
I just downloaded the full demo package and verified that it would run. I then went to the Toolbox Right-Clicked and Selected Choose Items... under .Net Framework Components I then browsed to the folder that has the ObjectListView.dll in it and selected it. This added the component to the Containers group on the Toolbox. I then added ObjectListView to my form and it worked correctly. Check and make sure your project references have ObjectListView in them.
i.e.