Bubble Event

S

shapper

Hello,

I have a few custom controls organized as follows:

Parent > Child > Section > User

User control raises an event named Updated.

This event has custom arguments of type UpdatedEventArgs.

UpdatedEventArgs have 2 properties: Name and City.

I want to fire an event in Parent, named Changed, with the the
arguments Name and City when Updated event is fired in User.

I am trying Bubble Event:

Protected Overrides Function OnBubbleEvent(ByVal source As Object,
ByVal e As EventArgs) As Boolean
If TypeOf e Is EventArgs Then
RaiseEvent Changed()
Return True
End If
Return False
End Function

The problem is the I should catch UpdatedEventArgs and then fire
Changed with those arguments.

How can I solve this problem?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top