Hi,
I have a user control on a parent form. The parent form has a RadioButton. I need to be able to determine the checked state of the RadioButton from the user control.
I tried creating a public property on the parent form with the following code:
public
bool IsDemarcateMode
{
get { return rdoDemarcate.Checked; }
}
However, it does not work because the property is not visible from the user control at run time, using the following line of code:
bool
bChecked = this.Parent.IsDemarcateMode;
Any suggestions?
Thanks.
Dan