public class TestControl : Button { private string MyFormCaption = "Hello World"; protected override void InitLayout() { base.InitLayout(); Control o = this; while (!(o is System.Windows.Forms.Form)) { o = (Control) o.GetContainerControl(); } o.Text = this.MyFormCaption; } }You'd need a safer way of detecting a containing form though....
>this.MyControl.MyFormCaption = this.ParentForm.Text; //whereby this -> usercontrolDon't see how you can achieve that - when you add the control to the usercontrol the usercontrol won't be sited on a form. You'd probably need to build the above type logic into the usercontrol as well....