I’m looking to build a dynamic GUI base on a XML File. I would like to create a Label with the Hostname, Label for Service, and Button with click event to call mymethod and pass in the value from Label Hostname and Label Service. I never tried to add controls dynamic and after google I’m more confused now. I really just want to be able to add to my XML file and the GUI pick it up on load. Also .Net 2.0 Please point me to a sample, good read, or anything for the novice.


My XML

<Servers>
<Server>
<Hostname>localhost</Hostname>
<Service>spooler</Service>
</Server>
<Server>
<Hostname>remotehost</Hostname>
<Service>spooler</Service>
</Server>
</Servers>