Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error when change backcolor value (Read 2689 times)
urit
YaBB Newbies
*
Offline


Sector Twelve, or to Infinity
and Beyond ...

Posts: 3
Joined: Nov 28th, 2006
Error when change backcolor value
Mar 6th, 2007 at 5:23pm
Print Post  
Everytime if i made change at the backcolor i get this error:
Error1The type 'MindFusion.Drawing.Brush' is defined in an assembly that is not referenced. You must add a reference to assembly 'MindFusion.Common, Version=1.0.2608.20825, Culture=neutral, PublicKeyToken=7fed53ada5b92263'.

Waht can I do?!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error when change backcolor value
Reply #1 - Mar 6th, 2007 at 5:27pm
Print Post  
Right click on the project node in solution explorer and choose Add Reference from the context menu. Then navigate to the FlowChart.NET installation folder and choose the MindFusion.Common.dll for the .NET version you are using. This reference should be automatically added when you start a new project, but not when you upgrade from a project that used a FlowChart.NET version older than 4.3.

Stoyan
  
Back to top
 
IP Logged
 
urit
YaBB Newbies
*
Offline


Sector Twelve, or to Infinity
and Beyond ...

Posts: 3
Joined: Nov 28th, 2006
Re: Error when change backcolor value
Reply #2 - Mar 7th, 2007 at 10:56am
Print Post  
Yes, i do this anyway. And i'd delete the flowchart-control in the designview. Drag n drop the new 4.3 version. But the designer creates allways something like that:

//
// flowChart
//
this.flowChart.AllowUnanchoredArrows = false;
this.flowChart.AutoSizeDoc = MindFusion.Diagramming.WinForms.AutoSize.AllDirections;
this.flowChart.BackBrush = new MindFusion.Drawing.SolidBrush("#FFAAAAC9");
this.flowChart.DocExtents = ((System.Drawing.RectangleF)(resources.GetObject("flowChart.DocExtents")));
resources.ApplyResources(this.flowChart, "flowChart");
this.flowChart.InplaceEditFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.flowChart.Name = "flowChart";


The problem-line is:
this.flowChart.BackBrush = new MindFusion.Drawing.SolidBrush("#FFAAAAC9");

When i delete the line everything seems ok. The problem appears when i change the property in the designer.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error when change backcolor value
Reply #3 - Mar 7th, 2007 at 12:12pm
Print Post  
Make sure you are using the common.dll for the correct .NET version. E.g. if you have a reference to the \Assemblies for .NET 2\FlowChart.NET.dll, make sure you have added the common.dll  for .NET 2 as well. If that does not help, please email me your project so we can check what happens here.

Stoyan
  
Back to top
 
IP Logged
 
urit
YaBB Newbies
*
Offline


Sector Twelve, or to Infinity
and Beyond ...

Posts: 3
Joined: Nov 28th, 2006
Re: Error when change backcolor value
Reply #4 - Mar 7th, 2007 at 12:44pm
Print Post  
Ahh, now it works fine. I missed the common.dll.
Thx!!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint