i thought .net had a property to do this but i can't find it. what is the .net way to do it?