You are already on a good path for wanting to control negative thoughts.
You do not to accept your thoughts if you don't agree with them. Try to challenge the thought as if you don't believe it, for ex. Try to replace it with a plausible positive thought. I would recommend books on mindfulness training and cbt. Also, basic eastern philosophy teachings help understand sources of negative thinking.