Page 1 of 1

How to set Gradient direction in WinRose Circle

Posted: Tue Jul 06, 2004 8:21 am
by 9336040
Help me Please
comboBox4.items are
{dTopBottom,gdBottomTop,gdLeftRight,gdRightLeft,gdFromCenter,gdFromTopLeft,gdFromBottomLeft}

in VB6,work fine following code
TChart1.Series(0).asWindRose.CircleGradient.Direction = Combo4.ListIndex

in VB.NET,followings makes error
private void comboBox4_SelectedIndexChanged(object sender, System.EventArgs e)
{
axTChart1.Series(0).asWindRose.CircleGradient.Direction=comboBox4.SelectedIndex;
}
Thank you in advance

Posted: Tue Jul 06, 2004 8:47 am
by Pep
Hi,

have you asigned the correct values to the Combo ? You must use for example :
TeeChart.EGradientDirection.gdFromCenter
instead of :
gdFromCenter
I've tried here and works fine.