问题描述
我有一个通用列表,例如:Public MyPersonnesDeContact As New
System.Collections.Generic.List(of clsPersonne)
我的clsPersonne引发了一些事件,我希望能够处理这些
事件。问题是:当使用WithEvents(Public WithEvents
MyPersonnesDeContact As New System.Collections.Generic.List(of clsPersonne))
我收到错误,说 ''WithEvents''变量不会引发任何事件。
有谁知道我怎么能处理发生在
中的事件我的Generic.List中的类的内容?
任何帮助,提示,变通方法等都会非常感激!
非常感谢提前,
Pieter
Hi,
I have a Generic List, for instance: Public MyPersonnesDeContact As New
System.Collections.Generic.List(Of clsPersonne)
My clsPersonne raises some events, and I want to be able to handle these
events. The problem is: when using the WithEvents (Public WithEvents
MyPersonnesDeContact As New System.Collections.Generic.List(Of clsPersonne))
I get an error, saying "''WithEvents'' variable does not raise any events.".
Does anybody know how I could be able to handle events that happens in the
intances of the class in my Generic.List?
Any help, hints, workarounds etc would be really appreciated!
Thanks a lot in advance,
Pieter
推荐答案
这篇关于如何处理在GenericList中引发的clsMyClass.Event(Of clsMyClass)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!