You should post in the .NET forum instead. This forum is for native C++.
Edit: Sorry, the forum should be Managed C++ and C++/CLI
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
After spending my whole day I found the crazier worth of the word, what is "static" ...
Also after removing the word "static" from the above declaration it works well..
Mainly for the sake of completeness, now that it works, let me note that it is possible to attach static class member functions as event handlers; just the delegate construction syntax is different in this case:
Bookmarks