Copying control events
-
Is there a way to copy the events associated with a control to another control? Like this ( will give a compiler error )
this->button->click = this->otherbutton->click;
Thanks PS this relates to my earlier post
Programmer Glenn Earl Graham Austin, TX
-
Is there a way to copy the events associated with a control to another control? Like this ( will give a compiler error )
this->button->click = this->otherbutton->click;
Thanks PS this relates to my earlier post
Programmer Glenn Earl Graham Austin, TX
If button and otherbutton is set up this way:
this->button->Click += gcnew System::EventHandler(this, &Form1::button_Click);
this->otherbutton->Click += gcnew System::EventHandler(this, &Form1::otherbutton_Click);then you can add "otherbutton" to also handle button's event thus:
this->button->Click += gcnew System::EventHandler(this, &Form1::otherbutton_Click);
"We make a living by what we get, we make a life by what we give." --Winston Churchill