I have three user controls. Here are the description of them: 1) First user control(ucCountry) contains combobox which displays country names from an xml file.
2) Second user control(ucChannelType) contains two radio buttons one to select TV and other to select Radio Channel Type.
3) Third usercontrol(ucChannels) will populate all the channels where country name is provided by ucCountry and type provided by ucChannelType
Now, how to communicate between these user control in a form. I need to decouple the usercontrols from the form. So, I need to use events. But if ucCountry fires an event (say CountryChanged event) and ucChannels subscribe the event, how to get the channel type from ucChannelType.
Thanks in advance...
best solution is to add properties to your custom controls. there may be no fields in background, the getters will just get data from property of internal standard control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With