From what I understand, including [Serializable] at the start of the class
definition is enough to mark the control as serializable, right? I have tried
that already but it doesn't seem to make any difference. The messagebox seems
to imply that the problem is with the UserControl class and I can't add the
attribute to that class...
Dmytro Lapshyn said:
Hi,
Looks like the designer attempts to serialize the control object in order to
put it on the Clipboard. As your control is not marked as Serializable, this
attempt fails and the designer cannot copy your control to the clipboard.
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
Barguast said:
Has anyone got any idea what might be causing this message to be shown? It
occurs whenever I try to copy / cut my custom control from the Form
Designer:
http://img13.echo.cx/img13/2061/notmarkedasserializable5ok.png