I want to create a dynamic windows form in C# based on XML. i want to use the xmlTextReader class, and use the while (reader.read()) function that will go over the content of the XML and will create the form. it should be very simple (super simple!!) for example, if my XML contains:
<TITLE>
<Field>
<field_name>Tom</field_name>
<field_type>textbox</field_type>
<is_mandatory>1</is_mandatory>
</Field>
</TITLE>
it means i need a textbox with the name of "Tom" and it should be mandatory. and if i will create more "Field" elements, it will create another one below the textbox.
can you give me an example code of how to do it?
thanks!!!