I have a chart where different signals are being plotted. I want to create a button, that when the user presses it , a new chart area is created.
int clicks = 0;
List<ChartArea> Areas = new List<ChartArea>();
private void button2_Click(object sender, EventArgs e)
{
clicks++;
for (int i=0; i<clicks; i++)
{
Areas.Add(new ChartArea());
Areas[i].Visible = true;
}
But nothing seems to happen.