StrictlySocial
Programmer
Hi,
First off, Apologies for my first post being a question.
Anyway, my problem is that I am creating a 'mini visual studio' which allows user to create their own forms using usual VS controls such as buttons, labels, etc.
Now what I want to be able to do is allow the users to save and load their forms half way through their development. At the moment I am using reflection to determine the properties of all the controls on the form and then documenting them in an XML file, however this could potentially take me a very long time due to the fact that I need to convert each property type into something that can be written to file (i.e. color white to RGB) and then restored back to the original type.
Does anybody know of a) an easier way than hardcoding the coversion of each property to document, or b) an open source example which will show me how to save form file, or c) an alternative method I can use to sve the existing form to file.
Thank you for your help in advance, I appreciate it greatly.
First off, Apologies for my first post being a question.
Anyway, my problem is that I am creating a 'mini visual studio' which allows user to create their own forms using usual VS controls such as buttons, labels, etc.
Now what I want to be able to do is allow the users to save and load their forms half way through their development. At the moment I am using reflection to determine the properties of all the controls on the form and then documenting them in an XML file, however this could potentially take me a very long time due to the fact that I need to convert each property type into something that can be written to file (i.e. color white to RGB) and then restored back to the original type.
Does anybody know of a) an easier way than hardcoding the coversion of each property to document, or b) an open source example which will show me how to save form file, or c) an alternative method I can use to sve the existing form to file.
Thank you for your help in advance, I appreciate it greatly.