且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我的应用程序中修复以下错误

更新时间:2023-10-22 21:54:22

错误信息非常明显。如果你无法阅读和理解它,那么没有什么可以帮助你。这是谁写了这个 DirList ,没有其他人。此外,这个不存在的成员仅仅是之后的事实。告诉我们你在自己的类中写了它,名为 Lounge_Image_Library 。所以,那样你创建了一些类,试图使用一些名为 DirList 的不存在的成员,你不需要在自己的类中创建。



因此,整个帖子看起来没有任何意义。问题很明显,很难想象你需要任何帮助来理解它。至于修复,这项任务是不可能或不可能的,它只是未定义,因为除了你之外没有人知道你的意图。更糟糕的是,如果你也不知道。



-SA
The error message is quite obvious. If you cannot read and understand it, nothing can else help you. This is you who wrote this DirList, no one else. Moreover the mere fact that this non-existent member comes after this. tells us that you wrote it in your own class called Lounge_Image_Library. So, that way you who created some class, tried to use some non-existing member named DirList, which you did not bother to create in your own class.

So, it looks like the whole post makes no purpose. The problem is clear and apparent, so it's hard to imagine that you would need any help understanding it. As to the "fixing", this task is not possible or impossible, it is simply undefined, because no one except you knows your intent. Worse if you don't know it, too.

—SA


它在该行

Me.DirList.Controls.Add(amsg)

不是吗?

这意味着类 Lounge_Image_Library 不包含名称为 DirList 的成员。

我不知道它应该是什么类型,至少它必须有一个Controls集合。

由于代码片段状态

Partial Class

我怀疑它可以在另一个代码文件中声明,而你的项目中缺少这个代码文件。
It is in the line
Me.DirList.Controls.Add(amsg)
isn't it?
This means that the class Lounge_Image_Library does not contain a member with the name DirList.
I do not know what type it is expected to be, at least it must have a Controls collection.
Since the code snippet states
Partial Class
I'd suspect that it could be declared in another code file, which is missing in your project.