Series Band Tool decreases the transparency on every refresh
Posted: Mon Mar 10, 2008 5:48 pm
Every time refresh is clicked “for the code below” you can see the transparency decreases or the band gets darker.
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
{
tChart1.Chart.Series.RemoveAllSeries();
tChart1.Chart.Series.Add(fastLine1);
tChart1.Chart.Series.Add(fastLine2);
tChart1.Tools.Remove(seriesBandTool1);
tChart1.Tools.Add(seriesBandTool1);
seriesBandTool1.Series = fastLine1;
seriesBandTool1.Series2 = fastLine2;
seriesBandTool1.Brush.Color = Color.FromKnownColor(KnownColor.LightSeaGreen);
seriesBandTool1.Brush.Transparency = 97;
}
private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
{
tChart1.Chart.Series.RemoveAllSeries();
tChart1.Chart.Series.Add(fastLine1);
tChart1.Chart.Series.Add(fastLine2);
tChart1.Tools.Remove(seriesBandTool1);
tChart1.Tools.Add(seriesBandTool1);
seriesBandTool1.Series = fastLine1;
seriesBandTool1.Series2 = fastLine2;
seriesBandTool1.Brush.Color = Color.FromKnownColor(KnownColor.LightSeaGreen);
seriesBandTool1.Brush.Transparency = 97;
}