custom events in child userControls c# .net or Child to Parent Communication in UserControls
Posted
by Asad Malik
on Stack Overflow
See other posts from Stack Overflow
or by Asad Malik
Published on 2010-06-01T10:49:47Z
Indexed on
2010/06/01
10:53 UTC
Read the original article
Hit count: 718
Okay here is the scenario:
I have a parent "SalesUC" UserControl which contains a "itemDetailsUC" UserControl, as well as a status label. (plz see sample below)
What I want:
If there occurs any exception in itemDetailsUC, it should be able to communicate the exception text to parent control (i.e. SalesUC). Remember: the "ItemDetailsUC" is also used in other controls that may or may not have status label.
any suggestions, answers... please.
Framework: .net 3.0/3.5 Language: c# Domain: Windows Application, WinForms, etc.
regards.
© Stack Overflow or respective owner