Trouble Creating forms dynamically
Posted on 2003-12-09
I am trying to build a form dynamically. I have a class that I've created to do the dirty work. The class accepts a form and attempts to recreate it dynamically. The class walks through the controls and attempts to recreate them using the System.Reflection namespace. Everything works great accept for the properties with complex types. For example, the Alignment property is System.Windows.Forms.TabAlignment enumeration type. How do I convert the value "Top" to the System.Windows.Forms.TabAlignment.Top enumerated value?