Your attitude when things go wrong is ultimately more important than the event itself and is what will determine if the outcome will be positive or negative.
I am in agreement with Kahlil Gibran when he says that “Your living is determined not so much by what life brings to you as by the attitude you bring to life; not so much by what happens to you as by the way your mind looks at what happens.
If you have been defeated by a negative attitude towards setbacks do not lose hope. Admitting your mistakes is the first step to correcting them.
A positive attitude can be learned and developed. It is a matter of choice. You can make the choice, whenever faced with a difficulty to look at it form an optimistic point of view rather than a pessimistic one.