I guess it is because you can't serialize a delegate\event and the user
control has some delegates\events defined in either your class or the base
implementation.
--
HTH
Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.
"Barguast" <It*****************@Email.com> wrote in message
news:44**********************************@microsof t.com...
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 [MVP]" wrote:
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" <It*****************@Email.com> wrote in message
news:1A**********************************@microsof t.com... 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/notm...lizable5ok.png