Hi Simon
Thanx for the info, however windowstate only specify the initial state of the window in the script that opens the window. When the window is already open this command doesn't seem to do anything.
Let's put it this way, I have a windows opened maximized inside a frame window, I click a button on this window which opens another window also maximized inside the frame window over the original window, but I don't close the original window. When I close the newly opened window the original window seems to be layered and not maximized anymore, and seeing as I disabled the maximize button on the window the user can't do it manually. I tried setting windowstate in the activate event of the original window, but that doesn't seem to do anything, the original window stays layered and not maximized every time I close the 2nd window. I'm completely lost on this one, and any additional help will be greatly appreciated. Thanx in advance. Cheers
Jeandre a.k.a Tentacle