You can do like this
// find control
Control[] controls = this.Controls.Find("button1", true);
if (controls.Length > 0)
{
Control control = controls\[0\];
// get properties
PropertyInfo\[\] properties = control.GetType().GetProperties();
foreach (PropertyInfo controlProperty in properties)
{
// check property name
if (controlProperty.Name == "Text")
{
// set value of control
controlProperty.SetValue(control, "My new Value", null);
}
}
}
----------------------------- Shakeel Iqbal ------------------------------ My New Article Task Manager