hi,
here is my example code:
Public Class Parent
Private _TestProperty As String
Private WithEvents _Child As IList(Of Child)
Public Property Test() As String
Get
Return _TestProperty
End Get
Set(ByVal value As String)
_TestProperty = value
End Set
End Property
Public Property Child() As IList(Of Child)
Get
Return _Child
End Get
Set(ByVal value As IList(Of Child))
_Child = value
End Set
End Property
Private Sub eventHandler Handles _Child
End Class
Public Class Child
Private _TestProperty As String
Public Event PropertyChanged As EventHandler
Friend Sub Notify()
RaiseEvent PropertyChanged(Me, New EventArgs())
End Sub
Public Property Test() As String
Get
Return _TestProperty
End Get
Set(ByVal value As String)
_TestProperty = value
Notify()
End Set
End Property
End Class
how can i handle the event raised by one of the child`s in the parent object? using withevents on the _child object gives me only the events from the List(of T) object.
tia