I am sorry to say that my answer probably won't be what you want to hear, at least from my experience. My son did the SAME exact thing. He can't help what he is doing if he is like my son. My son actually still sleep walks sometimes and he is 22. We just have to steer him back to bed. Thank goodness though it is few and far between now. The urinating problem all over the toilet and the surrounding area stopped years ago though. He outgrew it, I can't remember the age but I believe it was by the age of 10. It could have been earlier but it definitely was well after age 7. You just have to be patient with him. In my opinion punishment does nothing but make him embarrassed and hurt. Again, this is only based on my previous experience. Have you talked to his pediatrician about it? I know that my son also had a urinating in his pants during the day problem until he was 8 or so. We punished we did everything, finally he stopped. If I had talked to the pediatrician he probably would have discovered my son had a kidney medical disorder that it turns out nieces and nephews have and there would have been medication to take to stop it. I have felt so guilty since I found out that also was a problem he could not help. Talk to your doctor just in case. Well, I am sorry I could not give actual solutions, just experience.