Hi,
You can use reflection to do this, but you will also need state the type of
the control to create, this unless ALL controls are of the same type.
You use Activator.CreateInstance() to create the object and later assign the
properties using reflection.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"xenofex" <xe*****@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
i have a xml file which include object name and its property.
<objectname>TextBox1</objectname>
<property>Text</property>
how can i get the property source in c# ? . I have to create an object
from string data type like TextBox1.Text . I wonder that if it is possible or
not.
regards.