Code/C#

[C#] Object Binding Sample Project

Hide Code 2008. 12. 20. 21:13



using System.Windows.Forms;

namespace BindingSample
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            InitializeMyComponent();
        }

        private void InitializeMyComponent()
        {
            this.label1.DataBindings.Add("Text", this.textBox1, "Text");
            this.textBoxLeft.DataBindings.Add("Text", this.textBoxRight, "Text");
        }
    }
}