I have this:
btn->Click += gcnew EventHandler(this->dynamic);
but it says that a delegate constructor expects 2 arguments. What is wrong?
I have this:
btn->Click += gcnew EventHandler(this->dynamic);
but it says that a delegate constructor expects 2 arguments. What is wrong?
According to https://msdn.microsoft.com/en-us/library/system.eventhandler(v=vs.110).aspx
The constructor for EventHandler is:
In your code you have provided
this->dynamicwhich I would assume is yourobject sender. So you are missingEventArgs e.