Serialization of a Custom Control
I am trying to persist a treeview in an xml file. I have read a bit about serialization, and think that this is the way to go.
So I have coded in a form that contains the treeview the following:
Dim serialize As XmlSerializer
serialize = NewXmlSerializer(GetType(CustomTreeViews.clsModifiableTreeView))
serialize.Serialize(Console.Out, Me.TreeView1())
Console.Out.WriteLine()
In this code I am simply trying to generate the XML to the console - then I will tackle saving it in an XML file later. I am getting an Invalid Operation Exception error on the second line "There was an error reflecting
'CustomTreeViews.clsModifiableTreeView'." It also states that you cannot perform the operation on an Interface.
How can I serialize my treeview? I thought you could serialize any object?
Thanks in advance.
Serialize Chart Space???!!!
Hi All,
Question specially for Ednees
I was wondering if sombody knows how to serialize a chart space?
At the moment may app pass the line where I am trying to serilize my chart, it sends me an error messange telling me that the AXOWC10 "some other stuff" does not allow serialization.
I know not all objects can be serialized, BUT, if chart space can not be serialized... How is it saved in Excel and other aplications???
I have been reading about Serializing Active X controls at:
http://msdn.microsoft.com/library/de...erializing.asp
but still is not clear to me...
Thanks in advance for you shared knowledge...!!!