Unlike small children, who must learn to control their emotions, adults are expected to be able to manage (or regulate) theirs—especially emotions like anxiety and anger—and to prevent negative thoughts and feelings from driving their behavior.
Still, everyone experiences times when they feel emotionally overwhelmed and allow their feelings to control their actions. When this happens, they often regret the things they say or do and wish they had been able to keep those emotions in check.
In addition to (or as part of) emotion regulation therapy and self-regulation therapy, there are techniques, such as meditation, mindfulness, and stress management, that can help one take charge of negative emotions and ameliorate one's response to emotional situations. These techniques can also provide other benefits, like improved mood, increased feelings of self-worth, and increased empathy.