We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

(System.Drawing.Color)info.GetValue("FillColor", typeof(System.Drawing.Color)) causes error

Thread ID:





79800 Feb 26,2009 09:11 AM Feb 28,2009 01:39 AM Windows Forms 1
Tags: Diagram
Ron Alan Sawyer
Asked On February 26, 2009 09:11 AM

I have a custom symbol. When I do a copy and paste of this symbol the following line causes an issue:

FillColor = (System.Drawing.Color)info.GetValue("FillColor", typeof(System.Drawing.Color));

If I take the line out, I don't have a problem, if I put it in, there are problems.

The line
diagramForm.Diagram.Controller.Paste( );
offers this exception:

Unable to cast object of type 'System.IO.MemoryStream' to type 'Syncfusion.Windows.Forms.Diagram.ClipboardNodeCollection'.

Administrator [Syncfusion]
Replied On February 28, 2009 01:39 AM

Can you post the full code or if possible a sample that produces the error that you are currently facing.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.