Page 1 of 1

convert TeeChart in ActiveX to .Net verion issue?

Posted: Fri Aug 29, 2008 3:43 am
by 9638002
Hi All,

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


Thanks

Nick Sheng

Posted: Fri Aug 29, 2008 3:46 am
by 9638002
and also this line of code
Me.TChartYEMChart.Series(AtRiskStep).Color = System.Convert.ToUInt32(AtRiskStep)

Posted: Fri Aug 29, 2008 7:33 am
by narcis
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!

Posted: Sun Sep 07, 2008 10:06 pm
by 9638002
Thanks NarcĂ­s

Posted: Sun Sep 07, 2008 10:07 pm
by 9638002
just to make sure

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

Thanks

Nick Sheng

Posted: Mon Sep 08, 2008 7:38 am
by narcis
Hi Nick,

Yes it is.