By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Serializing UI

P: n/a
Hello,
I am trying to serialize part of the UI of my application using a
BinaryFormatter... I need to store the result of this into a database.
The object that I'm trying to serialize is a TableLayoutPanel. The
problem I'm running into is that at runtime, I get an error that the
object is not serializable. I'm a bit new to this sort of thing in VB,
and I'm not sure how to handle this.

The code that does this looks like:

Dim serializer As New
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter
Dim objStream As New System.IO.MemoryStream
serializer.Serialize(objStream, criteriaPanel) 'This is the line that
gives me problems!

Anyone have any suggestions to help deal with this?

Nov 16 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.