tags:

views:

35

answers:

2

Sounds a simple question but haven't found a way to do, so would solicit any responses I get.

I have a winform which in turn contains a user control object. based on some condition in the user control, i have to set a value in the winform. One way could be to pass the winform object as parameter to user control but that would give cyclic dependency. Is there a easy way out?

+1  A: 

Usually I would expose an appropriate event from the usercontrol. The form can subscribe to the event and react accordingly.

AdamRalph
+1  A: 

You can always use events from the user control to the form.

astander