Window Max Width and Height of "0" not the same as on Linux and OS X

In Linux and OS X, my projects that set a window’s max height and width to “0” has always resulted in what I perceived as “unlimited”. However, on Windows, if these values are “0”, as soon as you try to resize the window, it drops to a tiny size of the window decorations.

Spent a lot of time on this one, but when I started a new project with just a window, It resized properly. Scanning the properties side by side showed that the only differences were the Max Width and Height which are now 32000.

Have I just been lucky up to now???


I followed the history of this project back to RB 5.5. I Guess I set that at the beginning of the project since even the old .rb files had those set to 0.