Error CS 0433

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Error CS 0433

Post by Thomas » Wed Feb 15, 2006 2:42 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Feb 16, 2006 11:33 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Post by Thomas » Thu Feb 16, 2006 11:59 am

//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;
}

}
}

Thomas
Newbie
Newbie
Posts: 7
Joined: Mon Feb 13, 2006 12:00 am

Improved example

Post by Thomas » Fri Feb 17, 2006 5:23 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 21, 2006 4:29 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply