I totally understand you.........I've been through this (it still happens occasionally now , but I handle it better than I used to).
One thing you can try is Cognative behavioural Therapy , where you train the mind to think differently.
Take a look at this online one;
http://moodgym.anu.edu.au/default.asp
Take care ,
Smiler