Nope. As the compiler says: In Delphi.NET you must use the Include/Exclude functions to add/delete Eventhandler. That's because in CLR you always have multicast delegates (you can add more than one handler to a single event at a given time), and Delphi does not know the += / -= syntax to add / remove a single handler from an event. So you have to use
Include(Event, Eventhandler);
or
Exclude(Event, Eventhandler);
instead of
Event := handler;
.
If you can understand a bit of german, then have a look at this excellent article from Sakura:
http://www.delphipraxis.net/internal...=248261#248261