Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Control serialization sequence?
 

Control serialization sequence?

Does anyone know what's the sequence that Visual Studio serialize a windows form to designer.cs? any rules of the sequence of serialization?

For some reasons, I want several types of control serialize and generate the code in designer.cs first, is it possible to control to
serialization sequence?

Thank you!!!
Barry Kwok  Friday, July 18, 2008 8:12 AM

Hi Barry Kwok,

Based on my understanding, what you want to do is to control the code generation during design time, right? If so, there is a Serializer associated with each component class. The Serializer, which controls the serialization of the component, is generally based on System.ComponentModel.Design.Serialization.CodeDomSerializer. To modify the serialization process, we can derive from this class and provide custom serialization process. And then we need to set the custom Serializer as the Serializer of the Component using the System.ComponentModel.Design.Serialization.DesignerSerializer attribute.

For more information, please check the following page:
http://msdn.microsoft.com/en-us/library/system.componentmodel.design.serialization.codedomserializer.aspx

I also found the following article, which may help.

Best regards.
Rong-Chun Zhang

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Rong-Chun Zhang  Thursday, July 24, 2008 6:27 AM

Hi Barry Kwok,

Based on my understanding, what you want to do is to control the code generation during design time, right? If so, there is a Serializer associated with each component class. The Serializer, which controls the serialization of the component, is generally based on System.ComponentModel.Design.Serialization.CodeDomSerializer. To modify the serialization process, we can derive from this class and provide custom serialization process. And then we need to set the custom Serializer as the Serializer of the Component using the System.ComponentModel.Design.Serialization.DesignerSerializer attribute.

For more information, please check the following page:
http://msdn.microsoft.com/en-us/library/system.componentmodel.design.serialization.codedomserializer.aspx

I also found the following article, which may help.

Best regards.
Rong-Chun Zhang

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Rong-Chun Zhang  Thursday, July 24, 2008 6:27 AM

You can use google to search for other answers

Custom Search

More Threads

• Printing a windows form page
• Nested Parentable Control
• cant open the project in VS due to user control error at design time
• Remove the icon from the system tray programmatically
• Clear all Winform controls on Winform
• Creating Licensed control
• why invoke IComponentChangeService.OnComponentChanging method did not work?
• Prevent my Component from appearing in component tray?
• Custom CollectionEditor
• Event Publisher not Publishing?