I have seen something just like this on CodeProject or CodeGuru a month or two ago. I know it exists, but I can't remember where. I just tried to find it, but didn't have any luck. I'm sure you can find it, just keep searching. Chris Richardson Programmers find all sorts of ingenious ways to screw ourselves over. - Tim Smith