Here's the problem... I created a derived DataGrid object and I created a custom designer and codeDom serializer for it. Everything works perfectly. But, once you close the application and open it again, the deserialization process is supposed to interpret the code and properly set the properties of the grid and update its layout on the design surface. But, unfortunately the deserialization routine only receives those code statements that directly refer to my object. For example, let's say that my serializer generated the following:
Dim Ob1 as sometype Ob1 = new sometype() Ob.prop1 = 1000 MyObject.ob = ob1 The Deserialization routine only receives the last statement! All the rest are not in the statement collection. So, how can I deserialize correctly when I do not even get all the necesary statements? I do assume that the statements arrive somewhere in the deserialization process of the container that holds my grid (in this case a form), but I do not have access from my codeDomSerializer object to those statements... Thanks, Matthew
