Serialization of UserControl List

Posted on 2007-08-01
Last Modified: 2013-12-17
I am developing an application in C# 2005.
I have a usercontrol with many different properties including Color, PointF, Size
I have a form with a variable amount of instances of this control along with it's own properties.

I would like to use the XMLSerializer to create a save file for the overall form to store the lot.

If there any simple solution to this???

I understand that the UserControl itself cannot be Serialzed - this might be a problem!!!

Any thoughts?

Question by:jatkin
    LVL 8

    Accepted Solution

    you can write a property class and make that class to serializable. this is the easiest way i hope
    LVL 4

    Author Comment

    That is the conclusion I came to :-(

    Why isn't life ever simple!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now