public UserControl1() { InitializeComponent(); } public string branch { get; set; } private void button1_Click(object sender, EventArgs e) { MessageBox.Show(branch + ""); }
private void Form2_Load(object sender, EventArgs e) { UserControl1 usr = new UserControl1(); usr.branch= "Boom"; }
string str = textBox1.Text; userControl11.branch = str;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)