Thank you Stephan, i created a new method and added the code you gave me. For some reason that gave me 2 windows more that what i had on the screen, would you know why its doing that?? Also i was wonding if there was a way to find out the window tab coordinates of a window, is there any quick way of getting those values? Thanks again, Mohemd