My sister had one of those virtual fences to keep her dog in the yard. It worked like a charm.
Yeah, but it's tricky gettin' the collar around their necks! ;-)