Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to capture Winform UserControl Events without using Delegates

Posted on 2009-05-15
3
Medium Priority
?
1,070 Views
Last Modified: 2012-12-20
I have 2 UserControls on a Winforms Main form.  I need to capture events from one usercontrol without using delegates and events, possibly with an Observer Pattern mechanism, but how to do this?

I don't want the Mainform to be aware of the communication mechanism between usercontrols, and I can't require that either usercontrol is listening to the other or guarentee that both Usercontrols are even loaded.

Anybody have exprience with the Observer pattern or know some other way to do this?
0
Comment
Question by:tiote
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
JackOfPH earned 2000 total points
ID: 24400828
try this link...

This might give you an idea...

http://msdn.microsoft.com/en-us/magazine/dd252944.aspx
0
 

Author Closing Comment

by:tiote
ID: 31582143
Good call, I was unaware of the ObservableCollection class.  Using the link you sent I found some additional code that I can use to implement the notifications.  thanks for the help.
0
 

Expert Comment

by:svasudevan
ID: 38711699
Thank you so much; useful link
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question