TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
AGF
- Newbie
- Posts: 34
- Joined: Mon Feb 21, 2011 12:00 am
Post
by AGF » Wed Aug 03, 2011 5:43 pm
Code: Select all
Private Sub galleryPanel1_OnChangeChart(ByVal sender As Object, ByVal e As System.EventArgs) Handles galleryPanel1.OnChangeChart
Try
2: Dim frm As ChartPane =...
3: Dim frmList As WorkplacePane = ....
Dim tx As Integer = frm.TChart1.Series.Count
4: Dim t = frmList.ChartListBox1.SelectedIndex
5: Dim s As Steema.TeeChart.Styles.Series = frmList.ChartListBox1.SelectedSeries
6: Steema.TeeChart.Styles.Series.ChangeType(frm.TChart1(t), galleryPanel1.SelectedChart(t).GetType())
Catch ex As Exception
End Sub
since the last two updates these code (and for galleryPanel1_OnSubSelected to) does not more work?
Do you have made changes ?
Thanks
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Thu Aug 04, 2011 10:58 am
Hello AGF,
I recommend that take a look in demo project, concretely in All features\Welcome !\Components\Gallery\Chart Gallery Panel, where you find an example of Chart Gallery Panel, that works fine, and I recommend that do something as example. If it doesn't works as you want for your application, please send us a simple project with your code, so we can try to help you.
Thanks,
-
Uta
- Newbie
- Posts: 5
- Joined: Thu Sep 22, 2011 12:00 am
Post
by Uta » Sat Jan 14, 2012 1:38 pm
Dear Sandra,
from time to time i get these error messages
System.ArgumentOutOfRangeException: The Index was out of range. Must be non-negative and less than the collection.
Parametername: index
bei System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
bei Steema.TeeChart.Styles.SeriesCollection.get_Item(Int32 index)
bei Steema.TeeChart.TChart.get_Item(Int32 index)
bei .....GraphenPane.galleryPanel1_OnChangeChart(Object sender, EventArgs e) bei System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
bei Steema.TeeChart.Styles.SeriesCollection.get_Item(Int32 index)
bei Steema.TeeChart.TChart.get_Item(Int32 index)
bei .......GraphenPane.galleryPanel1_OnChangeChart(Object sender, EventArgs e)
How can i handel that?
Is it possible that the ValuesLists are not compare from one to an other seriestyp? How can i determine with are compatible and usable with the galleryPanel events?
Thanks
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Mon Jan 16, 2012 9:23 am
Hello Uta,
Can you send us a simple project where we can reproduce your problem here and try to find a solution for it?
Thanks,
-
Uta
- Newbie
- Posts: 5
- Joined: Thu Sep 22, 2011 12:00 am
Post
by Uta » Tue Jan 17, 2012 5:30 am
Dear Sandra,
these is the code....
Code: Select all
Private Sub GalleryPanel3_OnChangeChart(ByVal sender As Object, ByVal e As System.EventArgs) Handles GalleryPanel3.OnChangeChart
Try
2: Dim frm As ChartPane = TryCast(CType(......AddinModule.CurrentInstance, ......AddinModule).TaskPanesCollectionItem1.TaskPaneInstance, ChartPane)
3: Dim frmList As WorkplacePane = TryCast(CType(......AddinModule.CurrentInstance, ......AddinModule).TaskPanesCollectionItem2.TaskPaneInstance, WorkplacePane)
Dim tx As Integer = frm.TChart1.Series.Count
4: Dim t = frmList.ChartListBox1.SelectedIndex
If t = -1 Then
CvO_ShowInfoBoxen("NoSerieSelected")
Exit Sub
Else
5: Dim s As Steema.TeeChart.Styles.Series = frm.TChart1.Series(t)
6: 'Steema.TeeChart.Styles.Series.ChangeType(frm.TChart1(frmList.ChartListBox1.SelectedIndex), GalleryPanel3.SelectedChart(frmList.ChartListBox1.SelectedIndex).GetType())
Steema.TeeChart.Styles.Series.ChangeType(s, GalleryPanel3.SelectedChart(t).GetType())
End If
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString)
End Try
End Sub
Thanks
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Tue Jan 17, 2012 11:05 am
Hello Uta,
Thanks for your code. But I need you send us your project, because we can find exactly why in your project appears the exception. We try to use your code and we couldn't reproduce it, here. On the other hand, can you tell us which version of TeeChart.Net are you using?
Thanks,