Hi,
I am Working with three Panels witch are including a galleryPanel, TChart and ChartListBox.
How can i get the Index of the selected Series in an ChartListBox to use it to Change the Series.Style with the galleryPanle in VB.Net.
Thanks and Best Regards
ChartListBox - Get Index (SeriessIndex) of active Series
Re: ChartListBox - Get Index (SeriessIndex) of active Series
Hi AGF,
I'm not sure to understand how would you exactly want it to respond. It would be helpful if you could arrange a simple example project we can run as-is to reproduce the situation here.
Thanks in advance.
I'm not sure to understand how would you exactly want it to respond. It would be helpful if you could arrange a simple example project we can run as-is to reproduce the situation here.
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: ChartListBox - Get Index (SeriessIndex) of active Series
Hello AGF,
I'm not sure if this is what you are trying to do but this lines of code seems that achieve to series of index you are indicated:
if it's not what you were trying to do, please arrange the example Yeray was asking for.
I hope will helps.
Thanks,
I'm not sure if this is what you are trying to do but this lines of code seems that achieve to series of index you are indicated:
Code: Select all
Dim series As Steema.TeeChart.Styles.Series
series = ChartListBox1.Items.Item(0)
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ChartListBox - Get Index (SeriessIndex) of active Series
What i am looking for is to get the Item() Index number of the currently at the ChartlistBox selected .Items.item()
Re: ChartListBox - Get Index (SeriessIndex) of active Series
Hello AGF,
I suggested that use property of ChartListBox SelectedIndex and SelectedIndexChanged Event as do in next example of code:
Could you tell us, if previous code help you to solve your problem?
Thanks,
I suggested that use property of ChartListBox SelectedIndex and SelectedIndexChanged Event as do in next example of code:
Code: Select all
Steema.TeeChart.Styles.Line Series1, Series2;
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Series1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
Series2 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
Series1.FillSampleValues();
Series2.FillSampleValues();
chartListBox1.Items.Add(Series1);
chartListBox1.Items.Add(Series2);
chartListBox1.SelectedIndexChanged += new EventHandler(chartListBox1_SelectedIndexChanged);
}
void chartListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
int j = chartListBox1.SelectedIndex;
}
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: ChartListBox - Get Index (SeriessIndex) of active Series
Dear Sandra,
yes it helps me to fix my problem
yes it helps me to fix my problem