c# Form 向自定义控件传参

public partial class UserControl1 : UserControl
    {
        private string _text;
        public string textValue 
        {
            get
            {
                return this._text;
            }
            set
            {
                this._text = value;
                textBox1.Text = _text;
                base.Refresh();
            }
        }
        public UserControl1()
        {
            InitializeComponent();
        }
    }
 this.userControl11.textValue = "ffff";
原文地址:https://www.cnblogs.com/liuxinls/p/3045195.html