I have this code:
And I want instead of &VbCalculator::Btn1_Clicked to use array like pointers
But how to do this?
Thanks in advance
Code:
for(int i=0;i<10;i++){
btns[i] = new Button();
int num = (i+1);
if(i==10) i = 0;
btns[i]->Text = S"d";
btns[i]->Size = System::Drawing::Size(30, 30);
btns[i]->Location = Point(xpos[i], ypos[i]);
btns[i]->Click += new EventHandler(this, &VbCalculator::Btn1_Clicked);
btns[i]->BackColor = Color::FromArgb(50,80,90);
Controls->Add(btns[i]);
}
And I want instead of &VbCalculator::Btn1_Clicked to use array like pointers
But how to do this?
Thanks in advance