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";