Page 1 of 1
Error CS 0433
Posted: Wed Feb 15, 2006 2:42 pm
by 9640279
Hi,
We have a compiling error CS0433:
The Type "System.Drawing.Drawing2D.DashStyle" is found as in "c:\Programme\Steema Software\TeeChart for .NET v2\TeeChart.Pocket.dll" as in "c:\Programme\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll".
The same problem occues by application of System.Drawing.StringAlignment class.
How can we solve the problem?
Posted: Thu Feb 16, 2006 11:33 am
by narcis
Hi Thomas,
Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://
www.steema.net/steema.public.attachments newsgroup.
Posted: Thu Feb 16, 2006 11:59 am
by 9640279
//Hi,
//it is an improved example for ERROR CS 0433
//Usage:
//GraphicsManager gm=GraphicsManager.getInstance();
//gm.Init(tChart1);
//Fehler 1 The Type "System.Drawing.StringAlignment" is as in "c:\Programme\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll" as in "c:\Programme\Steema Software\TeeChart for .NET v2\TeeChart.Pocket.dll" vorhanden.
//Compiling Error CS 0433 under Visual Studio 2005 Last Release for Windows CE 5.0 Device
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
public class GraphicsManager
{
private Steema.TeeChart.Pocket.TChart tChart;
Steema.TeeChart.Tools.Annotation title_left;
Steema.TeeChart.Tools.Annotation title_right;
private static GraphicsManager instance = new GraphicsManager();
private GraphicsManager()
{
}
public static GraphicsManager getInstance()
{
return instance;
}
public void init(Steema.TeeChart.Pocket.TChart _tChart)
{
if (tChart != null)
return;
tChart = _tChart;
//Vert. Axes titles
title_left = new Steema.TeeChart.Tools.Annotation();
title_right = new Steema.TeeChart.Tools.Annotation();
tChart.Tools.Add(title_left);
tChart.Tools.Add(title_right);
title_left.Shape.Shadow.Visible = false;
title_left.Shape.Transparent = true;
title_right.Shape.Shadow.Visible = false;
title_right.Shape.Transparent = true;
title_left.Shape.CustomPosition = true;
title_left.Shape.Left = 20;
title_left.Shape.Top = 1;
title_left.Shape.Width = 200;
//Problem!
title_left.TextAlign = System.Drawing.StringAlignment.Near;
title_right.Shape.CustomPosition = true;
title_right.Shape.Left = 480;
title_right.Shape.Top = 1;
title_right.Shape.Width = 200;
//Problem!
title_right.TextAlign = System.Drawing.StringAlignment.Far;
//Problem!
tChart.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Dash;
}
}
}
Improved example
Posted: Fri Feb 17, 2006 5:23 pm
by 9640279
Hi,
I have just improved the example, it can be tested.
I suppose some classes from System.Drawing was included in
TeeChart.Pocket.dll
Regards,
T.
Posted: Tue Feb 21, 2006 4:29 pm
by narcis
Hi Thomas,
Thanks for the code. We have been able to reproduce the problem here and fixed it for the next debug build and maintenance releases.