TRAIN your mind to see the good in every situation. It won't come naturally, you WILL have to work at it, but eventually it will become second nature and you will have joy in your life even when things aren't going your way.
There is only one way to avoid criticism: do nothing, say nothing, and be nothing. -Aristotle (i. you can't avoid criticism so you must just learn to accept it and go on with your life. Accept yourself flaws and all).