Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Use BasicDesignerLoader and CodeDomDesignerLoader at the same time
 

Use BasicDesignerLoader and CodeDomDesignerLoader at the same time

Hello,

I developped my own designer. Everything is fine excepted the saving.

I overrided the CodeDomDesignerLoader and I can compile and run the form created in my designer. However, I would like to save the design. How can I serialize in xml and deserialize my work? I mean the design Time to allow the user to go on the design of his form.

In the sample http://msdn.microsoft.com/fr-fr/magazine/cc163634(en-us).aspx it uses only basicDesignerLoader or only CodeDomDesignerLoader but never both.

How can I do that?

Thank you


dalton5  Tuesday, December 09, 2008 1:10 AM
I answer to my question.

CodeDomDesignerLoader inherits from BasicDesignerLoader. So I can use basic designer loader in CodeDomDesignerLoader.

And it worked!
  • Marked As Answer bydalton5 Monday, December 15, 2008 5:17 PM
  •  
dalton5  Friday, December 12, 2008 12:48 PM
I answer to my question.

CodeDomDesignerLoader inherits from BasicDesignerLoader. So I can use basic designer loader in CodeDomDesignerLoader.

And it worked!
  • Marked As Answer bydalton5 Monday, December 15, 2008 5:17 PM
  •  
dalton5  Friday, December 12, 2008 12:48 PM
Hello,

I want to use both BaiseDesingerLoader and CodeDomDesingerLoader at same time, for this I override BasicDesignerLoader methods in a class which is extended by CodeDeomDesignerLoader class and overrides CodeDeomDesignerLoader methods as you suggested in your preious post. But it did not work for me.

Could you please explain or give me the code?

Thanks in advance.
nagpalritesh  Thursday, June 25, 2009 12:00 PM

You can use google to search for other answers

Custom Search

More Threads

• Scrolling textbox
• Changing size and position leaves the selection handles behind.
• Doing undo & redo operations....
• How can I copy, cut and paste control in IDesignerHost ?
• Windows Forms Team Needs Your Feedback!
• Is it possible to hide third column if two columns are assigned to a ListView control ?
• AutoScaleMode and development on different machines
• Using thread VB Net 2005
• Can an ExtenderProvider expose Public Events as well
• Why doesn't the myCollection property show in run time?