Problem with backgroundworker and System.ComponentModel.EventHandlerList

DJG 26 Reputation points
2021-11-12T14:28:17.113+00:00

Hi to all,
i'm in the need to retrive the elements Events.head.handler.Target from a System.ComponentModel.BackgroundWorker.

Events is a System.ComponentModel.EventHandlerList
head is a System.ComponentModel.EventHandlerList.ListEntry

When i try to access events (that is System.ComponentModel.EventHandlerList) the system give the following error:

ReadOn|y Property System.ComponentModel.Component.Events As System.ComponentModel|.EventHandlerList
Gets the list of event handlers associated with this System.ComponentModel.Component

values obtained:

Un System.ComponentModel.EventHandlerList which provides delegates for this component.
BC30389: ‘System.ComponentModel.Component.Events' it is not accessible in this context because it is 'Protected'.

Thank in advance.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,782 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.