SOAP FORMATTER
-
hI ALL, My problem is this: Im writting a control that reads a list of graphics from an embedded text file. This file is generated by soap formatter. The Soap F. serialises a class that holds info. My program then uses soap to deserialise the file, back into the orig class and reads the info and loads the embedded pictures into variables This all works fine at runtime, but when you add the control to a form in design time it returns an error : Cast not valid. I can Deserialise it back into a object type though. i.e Dim SoapF as new soapformatter Dim MemoryStream as memoryStream Dim obj as Object Dim tstClass as TestClass 'This works at designtime/runtime : obj = soapf.deserialise(MemoryStream,Object) 'This works at runtime (but i need it to work all the time!) : tstClass = soapf.deserialise(MemoryStream,TestClass) Any Ideas? __________________ Thanks for your help!