Is there an VB.net equivalent for the following C# post? Using CType causes a runtime crash.
private void Button1_Click(object sender, System.EventArgs e)
{
(WebChart1.Chart.Series[0] as Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Rectangle;
}
Change shapestyle using VB.Net
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello,
It works fine for me here using:
It works fine for me here using:
Code: Select all
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
CType(WebChart1.Chart.Series(0), Steema.TeeChart.Styles.Shape).Style = Steema.TeeChart.Styles.ShapeStyles.Rectangle
End Sub
Best Regards,
Narcís Calvet / 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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi newbie,
What you are doing here is adding point series. If you want to change its pointer style you need to do something like:
What you are doing here is adding point series. If you want to change its pointer style you need to do something like:
Code: Select all
CType(WebChart1.Chart.Series(1), Steema.TeeChart.Styles.Points).Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle
Best Regards,
Narcís Calvet / 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 |