As much as I hate to admit it, we have an electric fence for our dog. I saw her get shocked once and it was horrible. But she learned quickly. She goes to the very edge of the yard, but will never get too close again. It reminds me of Dianne's motto...If it doesn't feel good, don't do it twice.