473,569 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bubble Event

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 UpdatedEventArg s.

UpdatedEventArg s 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(B yVal 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 UpdatedEventArg s and then fire
Changed with those arguments.

How can I solve this problem?

Thanks,

Miguel
Jan 23 '08 #1
0 1065

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1142
by: Daniel | last post by:
for listbox is there anyway to get the event of a mouse over a particular list item? e.g. to display a bubble that shows the item incase the text is long and cut off by the text box?
1
1761
by: Jesse Wade | last post by:
Hello all. In N6+ is it possible to have a whole bunch of TD cells in a table and have a click event handler on the TABLE object that identifies the clicked cell? I don't want to have individual click handlers on each TD as the page will become too large. So the concept would be something like: <SCRIPT language="javascript">
34
7288
by: Mark Kamoski | last post by:
Hi-- Please help. I need a code sample for bubble sort. Thank you. --Mark
5
6827
by: Tom Gao | last post by:
Hello friends I'm trying to perform event bubble on a user control from the example on http://odetocode.com/Articles/94.aspx but this example doesn't work... when I run the code it says BubbleControl does not exist which makes sense as nothing was assigned to BubbleControl... I'm just curious if I should assign because I did try assigning...
0
1062
by: Atif Jalal | last post by:
I have a usercontrol which I add to the page the aspx page at runtime. This control is dynamically created multiple times in the page and added to a placeholder. This user control also has some events which I would like to bubble it to the page on which the control is added. So how do i initiale the event in InitializeComponent of the aspx...
1
4367
by: Lucifer | last post by:
Hi I am trying to raise a bubble event. I have a dropdownlist and a datalist in a datalist. I want to use the postback from the dropdownlist to rebind the nested datalist. But i need the event to be a datalist Command so i have access to e.item for the main datalist
2
2353
by: JohnR | last post by:
Hi all. In my program I try to handle all obvious potential errors with structured error handling (try-catch) block. What I would like to do is have an 'overall' error handler that would gracefully catch any unanticipated errors. I created a startup module to place my overall error handling for my "real" program which is Form1. My...
1
1795
by: David | last post by:
Hi all, I have a page that inherits from my own page class that inherits from system.web.ui.page. In my page, I have a button click event that saves content of the page. The saving is actually done via the bubbled event rather than directly in my page. Now, if I enter invalid data (for example, 31st February 2007), I need to
3
5217
by: Stuart Golodetz | last post by:
Hi guys, Just wondering what you'd recommend in terms of a C++ priority queue implementation that supports bubble-up and bubble-down operations please? std::priority_queue doesn't seem to support doing that, and I couldn't find an alternative in Boost. I could write my own, but that feels a little bit like reinventing the wheel, so I...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.