PC Review


Reply
Thread Tools Rate Thread

Bubble Event

 
 
shapper
Guest
Posts: n/a
 
      23rd Jan 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bubble Event shapper Microsoft ASP .NET 2 6th Nov 2007 02:28 PM
event bubble Tom Gao Microsoft C# .NET 5 30th Nov 2004 01:46 PM
event bubble Tom Gao Microsoft C# .NET 0 30th Nov 2004 12:30 PM
raise a bubble event. Lucifer Microsoft ASP .NET 1 13th Oct 2004 03:51 PM
raise a bubble event. Lucifer Microsoft VB .NET 0 13th Oct 2004 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:38 PM.