Page 1 of 1

Programmatically change styles attributes (ASP.NET - C#)

Posted: Fri Apr 09, 2004 1:35 pm
by 8125026
hi all,

my problem is simple :

i have one chart, i want a pie in that chart and when i click on a checkbox i want that the Shadow visibility of the pie to be changed.

So i think i need to declare the pie as a global variable but i can't add it after, it says that it isn't an instance so i need help here.

I am coding in C#.

Thanks in advance

Posted: Wed Apr 14, 2004 2:00 pm
by Chris
Hi --
i have one chart, i want a pie in that chart and when i click on a checkbox i want that the Shadow visibility of the pie to be changed.

So i think i need to declare the pie as a global variable but i can't add it after, it says that it isn't an instance so i need help here.
You could try:

Code: Select all

private Steema.TeeChart.Styles.Pie pie1;
private void Form1_Load(object sender, System.EventArgs e) {
			pie1 = new Steema.TeeChart.Styles.Pie(tChart1.Chart);
			pie1.FillSampleValues();
}

private void checkBox1_Click(object sender, System.EventArgs e) {
			pie1.Shadow.Visible = checkBox1.Checked;
}