Resizing a window upon opening

what is the code for having a window resize to a specific size upon the window opening?