I have a code that is running like this and calling an event.
The event is writing some lines to a textfile.
But after each loop, the event is writing one more line each time.
It seems that the += is filling the left side up.
Is there a way to delete the content on the left side of += after each loop ?
for (int i = 0; i < 3; i++)
{
Fr->callEvent += gcnew Dt->callingEventHandler(this->callEvent );
}