无法使用ObjectListView

发布于 2024-12-22 21:03:57 字数 356 浏览 5 评论 0原文

我刚刚下载了 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

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

虐人心 2024-12-29 21:03:57

听起来你缺少一个参考。

如果添加了项目源代码,则需要右键单击该项目并选择“添加引用...”,选择“项目”选项卡,然后选择“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 the Target framework dropdown list (it will currently be set to .Net Framework 4 Client Profile).

蓝眸 2024-12-29 21:03:57

我刚刚下载了完整的演示包并验证了它是否可以运行。然后,我转到“.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文