Right, I've thrashed around with this nightmare for a while and produced nothing. With the help of a friend I've come to a conclusion that I want to try and create a class for window creation so that's it's more readily accesible. Does anyone have any ideas how you would put that into action?