I am trying to change a legacy C++ CLR:oldsyntax application to set up an KeyUp
event without success.
This is the relevant part of the code:
// declare delegate
__delegate void KeyUpFuncDelegate(Object */*sender*/, System::Windows::Forms::KeyEventArgs * e);
// try to hook up the event
this->SuperMatricula->KeyUp+= KeyEventHandler(this,KeyUpFuncDelegate);
I get the following error:
error C2275: 'GrFingerSampleCPPdotNET2005::FormSup::KeyUpFuncDelegate' : illegal use of this type as an expression
Any clue?
Thanks in advance!