G
Guest
Hi,
just a quick one.
i'm trying to bind the Visible property of a control to a public property of
the parent form.
i.e.
private bool _okToDoSomething = false;
public bool IsOkToDoSometing {
get { return this._okToDoSomething; }
}
/// then in initialisation
this.buttonDoSomething.DataBindings.Add("Enabled",this, "IsOkToDoSomething");
i've read that binding can only occur if bound object implement IList (which
the form obviously doesn't) - so is something like this possible? and if so
how do I do it?
just a quick one.
i'm trying to bind the Visible property of a control to a public property of
the parent form.
i.e.
private bool _okToDoSomething = false;
public bool IsOkToDoSometing {
get { return this._okToDoSomething; }
}
/// then in initialisation
this.buttonDoSomething.DataBindings.Add("Enabled",this, "IsOkToDoSomething");
i've read that binding can only occur if bound object implement IList (which
the form obviously doesn't) - so is something like this possible? and if so
how do I do it?