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

 

posted @ 2013-04-26 16:51  louiskoo  阅读(2651)  评论(0编辑  收藏  举报