[Solved] populating property with button click [closed]


Can’t you simply set the value of the Name property to the value of the Text property of the TextBox?:

private void btnOK_Click(object sender, EventArgs e)
{
    Name = textBox1.Text;
}

7

solved populating property with button click [closed]