I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values.

The problem is that if I have drawed a graph and change some values and draw a Graph again, the previous Graph doesn´t dissapear from the diagram.

So what happens is that each time I press the button a new Graph is drawned to the diagram.

The function that do draw the Graph look like below where the last line: "myCurve =" is the line that draw the Graph.

I beleive I have to "delete" or refresh the GraphArea from Drawn lines.

I am really stuck and any idéas would be greatful.

I ex: tried to write myCurve.Clear(); but this didn´t have any effect.

```
void CreateGraph( ZedGraphControl ^z1 )
{
// Get a reference to the GraphPane instance in the ZedGraphControl
GraphPane ^myPane = z1->GraphPane;
// Generate a red curve
LineItem ^myCurve;
myCurve = myPane->AddCurve( L"Curve1", list, Color::Red, SymbolType::None );
}
```