A vet has shared a simple trick which is perfect for dog owners who struggle to get their furry friends to take medication.