I also have this problem big time. I've found that if I have a packet of chokkies UNOPENED in my cupboard, it's easiest, because I don't feel deprived (I am ALLOWING it to be in my pantry, and I can have some if I desperately want it), and it's easier to delay eating it as long as the packet is unopened. Once it's opened, I save my treat for just before bed-time, coz then you don't have very long to obsess about it before you go to bed, and limits the opportunity to keep eating.
If I forbid myself having any, then at the first time someone offers me chocolate (and without fail it's always the next day after my decision not to eat it) then I ALWAYS have a big cave and eat a huge amount. Deprivation doesn't work. For me, anyway.
Hope you find a solution!
I am gonna exercise my butt off!! Literally!!