Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / May 2007

Tip: Looking for answers? Try searching our database.

Custom serialization question(s)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Burke - 30 Apr 2007 15:48 GMT
I'm writing a custom XML serializer that can generate XML for any WinForm
object at design or run-time.  But there are a couple of cases that I can't
handle properly, but the default Code DOM serializer does.  I'd appreciate
any info on how to solve these cases:

1. How can I determine that an object needs to be created as a Resource?  
For example, I can write property/value pairs or generate a byte array for an
image but the right answer is to use the bytes.  Do I need to special case
just images?  Is it because it supports ISerializable? Is it because it uses
an ImageConverter and can be converted to a byte[]?  What's the best way to
differentiate this case?

2. I've found some Components just exist at design-time and I don't want
these serialized.  For example, on a MenuStrip, at design time, there are
some extra items in the 'Items' collection.  Namely something called
a'miniToolStrip' that shouldn't be saved.  I haven't found the right logic to
filter out these design-time only components....any ideas?

Thanks,
Joe
jokiz - 12 May 2007 03:33 GMT
properties with DesignOnly attribute are serialized at the resource
file.

On Apr 30, 10:48 pm, Joe Burke <JoeBu...@discussions.microsoft.com>
wrote:
> I'm writing a custom XML serializer that can generate XML for any WinForm
> object at design or run-time.  But there are a couple of cases that I can't
[quoted text clipped - 16 lines]
> Thanks,
> Joe

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.