How to set Gradient direction in WinRose Circle

TeeChart for ActiveX, COM and ASP
Post Reply
MT64
Newbie
Newbie
Posts: 5
Joined: Mon Mar 08, 2004 5:00 am

How to set Gradient direction in WinRose Circle

Post by MT64 » Tue Jul 06, 2004 8:21 am

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Jul 06, 2004 8:47 am

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.

Post Reply