Can anybody explain me why the difference between this two logs:

IDE
Board UserControl_Paint
ctlSudoku TB_ButtonClick
Board UserControl_Terminate
ctlSudoku UserControl_Terminate

EXE
Board UserControl_Paint
ctlSudoku TB_ButtonClick
Board UserControl_Paint

The first one is the log for the project being run on the IDE. The second one is the log for the same project being run the EXE. I have to correct this, because if the Terminate events are not fired the objects are not released and the program raises an awful error when it should close itself smoothly. Any ideas how to fix this? TIA,