I have a ZedGraphControl on my Form. When the form open there is a lot of code that will draw a graph. A few lines of this code is in the first codeview here.
From what I can understand, I beleive this code will execute once when the Form opens:
void CreateGraph( ZedGraphControl ^z1 )
{
// Get a reference to the GraphPane instance in the ZedGraphControl
GraphPane ^myPane = z1->GraphPane;
// Set the titles and axis labels
myPane->Title->Text = L"Graph";
}
My question is if it is possible to use a buttoncontrol to activate the Graph to recalculate.
I know how a buttoncontrol can activate another buttoncontrol like below but it seems that I canĀ“t write: CreateGraph(this, EventArgs::Empty);
So I think my question is how it can be possible to activate:
void CreateGraph( ZedGraphControl ^z1 )
void button1_Click(Object^ sender, EventArgs^ e)
{
// Stuff for button 1
button2_Click(this, EventArgs::Empty);
}