Originally Posted by
Labradorks
What are we talking here? Does she bark for five minutes when you leave, and five minutes when you come home? If that is the case, I feel like that is reasonable, and while a neighbor may not like it, if the complex is pet-friendly, they have to be tolerant of that. Dogs bark, so if they allow dogs, then should allow reasonable barking without it being an issue. Especially if the barking occurs outside of quiet hours, which is generally 10pm - 7am.
Part of the issue is that you tolerated this behavior for five years. So, undoing it is going to take some time. More than anything, it's going to take consistency. When you leave, have you tried leaving her with a Kong or other food-filled toy to keep her occupied? A dog can't really bark while working on a big, frozen Kong. Coming back in and scolding her, as you have seen, does nothing except encourage her to bark so that you will come back. For some dogs, negative attention is just as good as positive attention. Also, is she well-exercised?
As far as when you come home, do you think you have in any way encouraged her behavior? When you come home, I would not open the door until she stops barking. As soon as she stops, come inside but don't get her riled up. In fact, ignore her until she is calm. Calmly pet her or greet her only when she is settled. If she begins barking again once you are inside, leave, stand on the other side of the door and don't come in until she is quiet. It might take some time, especially the first time, but she will get it pretty quickly. You must be consistent or it is a total waste of time and obviously it won't work.
Finally, regarding scolding and "popping" your dog when she doesn't come when called -- what do you think that accomplishes? It accomplishes your dog NOT coming when called. You might also consider a basic obedience class where the trainer can help with the recall.