convert TeeChart in ActiveX to .Net verion issue?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nick Sheng
Newbie
Newbie
Posts: 6
Joined: Thu Aug 11, 2005 4:00 am

convert TeeChart in ActiveX to .Net verion issue?

Post by Nick Sheng » Fri Aug 29, 2008 3:43 am

Hi All,

how to convert
YEMChart.Series(AtRiskStep).asLine.Pointer.Style = TeeChart.EPointerStyle.psRectangle to TeeChart in .Net version?


Thanks

Nick Sheng

Nick Sheng
Newbie
Newbie
Posts: 6
Joined: Thu Aug 11, 2005 4:00 am

Post by Nick Sheng » Fri Aug 29, 2008 3:46 am

and also this line of code
Me.TChartYEMChart.Series(AtRiskStep).Color = System.Convert.ToUInt32(AtRiskStep)

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

Post by Narcís » Fri Aug 29, 2008 7:33 am

Hi Nick,
how to convert
YEMChart.Series(AtRiskStep).asLine.Pointer.Style = TeeChart.EPointerStyle.psRectangle to TeeChart in .Net version?
Yes, you can do this:

Code: Select all

        CType(TChart1(AtRiskStep), Steema.TeeChart.Styles.Line).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle
or this:

Code: Select all

        Dim Line1 As New Steema.TeeChart.Styles.Line(TChart1.Chart)
        Line1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Rectangle
and also this line of code
Me.TChartYEMChart.Series(AtRiskStep).Color = System.Convert.ToUInt32(AtRiskStep)
Try this:

Code: Select all

        TChart1(AtRiskStep).Color = Color.FromArgb(AtRiskStep)
Hope this helps!
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

Nick Sheng
Newbie
Newbie
Posts: 6
Joined: Thu Aug 11, 2005 4:00 am

Post by Nick Sheng » Sun Sep 07, 2008 10:06 pm

Thanks Narcís

Nick Sheng
Newbie
Newbie
Posts: 6
Joined: Thu Aug 11, 2005 4:00 am

Post by Nick Sheng » Sun Sep 07, 2008 10:07 pm

just to make sure

does TChart1(AtRiskStep). same as TChart1.Series(AtRiskStep). ?

Thanks

Nick Sheng

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

Post by Narcís » Mon Sep 08, 2008 7:38 am

Hi Nick,

Yes it is.
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