Jabber-net RosterTree 错误

发布于 2024-08-27 15:14:17 字数 377 浏览 3 评论 0原文

每当我将 Jabber-net RosterTree 控件添加到表单中时,我都可以看到它的 PresenceManager 和 RosterManager 属性值列出了以下错误:

无法将“System.Windows.Forms.DataGridViewTextBoxColumn”类型的对象转换为“System.ComponentModel.Component”类型。

我可以编译解决方案,但除了这个错误之外,所有错误都会随机弹出。有人可以建议这种情况何时发生吗?我认为这与未正确添加控件有关。

Whenever I add the Jabber-net RosterTree control to my form, I can see that the PresenceManager and RosterManager property values for it have this error listed:

Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxColumn' to type 'System.ComponentModel.Component'.

I can compile the solution and all but this error keeps popping up randomly. Can someone advice when this may happen. I'm thinking it has to do with the controls not being added properly.

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

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

发布评论

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

评论(1

蒲公英的约定 2024-09-03 15:14:17

尝试将 JabberClient 实例上的 InvokeControl 设置为组件,例如表单。如果这解决了问题,那么我就知道错误在哪里。

Try setting the InvokeControl on your JabberClient instance to something that is a Component, like your Form, for instance. If that fixes the problem, then I know where the bug is.

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