I'm no dog trainer, but I've owned a couple of wonderful animals over the years. In a nutshell, if you don't catch them in the act of doing whatever it is you don't wish them to do AND make the correction to the behavior in the proper manner right there & then....there's not much you can do.
The greater the time delta between the act & the attempted correction, the less effective it will be. No matter how "smart" you believe them to be...the correlation is lost on them.
Google is your friend on this one! See articles such as
http://www.professorshouse.com/pets/...ine-a-dog.aspx
For details. Good luck!