First of all, do not force your child to do something particular that makes him or her annoyed. Try to convince your kid by showing your love for him/her because a gentle behaviour brings good results most of the times.
Allow your kid to tell you the reason of his or her particular behaviour or stubbornness. It might be possible that he/she is feeling some sort of fear, stress or something else. It will be easy for you to deal with your kid after knowing the reason of his/her behaviour.
Always try to give choices to your kid which will make him/her confident that he or she has some power. Put choices and see which one your child goes for. It will also help you in moulding his or her behaviour.
Try to convince your child with love and patience that he/she is doing something wrong. Try to convince your kid with something that creates interest for him or her which will force him or her to think differently as you want.
You should also try to give more time to your child and become friendly with him or her which will help you in shaping your child’s thinking in a desired way.
Always appreciate your child when he or she does something according to your will. It will give your kid confidence that he/she has done something valuable.