Quote Originally Posted by Umar214 View Post
Thanks Ajay! Do you mean we need to mark the Timer object as a NonSerialiazable attribute?
No. You won't be able to mark the Timer as non serializable because you didn't write this code (it's part of the framework). As such, you won't be able to change the code.

The point I'm making is that you shouldn't be trying to serialize UI framework code anyway. You should only serialize data, not ui code.

Change your design and code so that the data is kept separate from the UI code, then serialize the data.