I am developing my own WinForms designer. It should be able to upload existing custom forms. One of the problems I click on is forms without a default ctor: My code is currently creating a form before loading it into the constructor, which requires ctor by default.
OTOH, VS2008 is capable of loading such forms. I believe that this does not actually create an instance of my form (as noted in this question ): Even standard ctors do not execute. And that really does not execute InitializeComponent (). I simply added a message to this function and did not show it.
It seems to dynamically mimic a custom form type and execute only parts of the code in the InitializeComponent, which, in his opinion, matters.
Does anyone know where I can find more information on how the VS constructor works.
TIA.
Note: I found this question without satisfying answers
EDIT: More info: Steve points me to CodeDom, which is very interesting. My problem is that the types that I need to load into my designer are already compiled instead of being available as source code. I cannot find a way to apply CodeDom deserialization to compiled code.
source share