I saw an interesting forum discussion in the Bangkok Post today (
"foreigners have got no rights" - Forum section) about a foreigner living in Thailand who had a problem with a neighbour's noisy dog (sound familiar). Basically some dogs were barking through the night and these foreigners couldn't sleep and neither could their baby. One day when the neighbours weren't home and as the dogs were keeping them awake, the husband sprayed some water on the dogs.
The next morning they found a letter basically with the message that if the if did that again, "you, your wife, your son will not be happy here anymore. Gentle warning". They went to police with a Thai friend, but their neighbours had been there before them to report the incident. The police said that the letter didn't mean anything and that they should understand Thai culture more.
Conflict resolution for foreigners in Thailand is a tricky business as we have experienced ourselves. Thais normally avoid direct confrontation at all costs and use third parties to resolve the conflict. This can be frustrating for foreigners who are used to more direct and immediate action. With our own dog problem we tried our best to resolve the issue through our landlord and other neighbours (though the outcome wasn't really satisfactory for us)
What we've been taught to accept is that another culture's way of doing things is not "wrong" just "different". The more we understand the culture the less "strange" some of the ways become (most of the time anyway).
The rest of the forum discussion is interesting to say the least suggesting possible solutions. I've taken a note of the link to a free dog whistle sound file which you can play through speakers out of your window into the direction of the offending dog to silence it.